Joram ${version}

org.objectweb.joram.client.connector
Class OutboundProducer

java.lang.Object
  extended byorg.objectweb.joram.client.connector.OutboundProducer
All Implemented Interfaces:
javax.jms.MessageProducer
Direct Known Subclasses:
OutboundPublisher, OutboundSender

public class OutboundProducer
extends java.lang.Object
implements javax.jms.MessageProducer

An OutboundProducer instance wraps a JMS producer for a component involved in outbound messaging.


Field Summary
protected  javax.jms.MessageProducer producer
          The wrapped JMS producer.
protected  OutboundSession session
          The OutboundSession this producer belongs to.
 
Method Summary
protected  void checkValidity()
          Checks the validity of the subscriber instance.
 void close()
          Delegates the call to the wrapped producer.
 int getDeliveryMode()
          Delegates the call to the wrapped producer.
 javax.jms.Destination getDestination()
          Delegates the call to the wrapped producer.
 boolean getDisableMessageID()
          Delegates the call to the wrapped producer.
 boolean getDisableMessageTimestamp()
          Delegates the call to the wrapped producer.
 int getPriority()
          Delegates the call to the wrapped producer.
 long getTimeToLive()
          Delegates the call to the wrapped producer.
 void send(javax.jms.Destination dest, javax.jms.Message message)
          Delegates the call to the wrapped producer.
 void send(javax.jms.Destination dest, javax.jms.Message message, int deliveryMode, int priority, long timeToLive)
          Delegates the call to the wrapped producer.
 void send(javax.jms.Message message)
          Delegates the call to the wrapped producer.
 void send(javax.jms.Message message, int deliveryMode, int priority, long timeToLive)
          Delegates the call to the wrapped producer.
 void setDeliveryMode(int deliveryMode)
          Delegates the call to the wrapped producer.
 void setDisableMessageID(boolean value)
          Delegates the call to the wrapped producer.
 void setDisableMessageTimestamp(boolean value)
          Delegates the call to the wrapped producer.
 void setPriority(int priority)
          Delegates the call to the wrapped producer.
 void setTimeToLive(long timeToLive)
          Delegates the call to the wrapped producer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

session

protected OutboundSession session
The OutboundSession this producer belongs to.


producer

protected javax.jms.MessageProducer producer
The wrapped JMS producer.

Method Detail

setDisableMessageID

public void setDisableMessageID(boolean value)
                         throws javax.jms.JMSException
Delegates the call to the wrapped producer.

Specified by:
setDisableMessageID in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

setDeliveryMode

public void setDeliveryMode(int deliveryMode)
                     throws javax.jms.JMSException
Delegates the call to the wrapped producer.

Specified by:
setDeliveryMode in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

setPriority

public void setPriority(int priority)
                 throws javax.jms.JMSException
Delegates the call to the wrapped producer.

Specified by:
setPriority in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

setTimeToLive

public void setTimeToLive(long timeToLive)
                   throws javax.jms.JMSException
Delegates the call to the wrapped producer.

Specified by:
setTimeToLive in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

setDisableMessageTimestamp

public void setDisableMessageTimestamp(boolean value)
                                throws javax.jms.JMSException
Delegates the call to the wrapped producer.

Specified by:
setDisableMessageTimestamp in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

getDestination

public javax.jms.Destination getDestination()
                                     throws javax.jms.JMSException
Delegates the call to the wrapped producer.

Specified by:
getDestination in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

getDisableMessageID

public boolean getDisableMessageID()
                            throws javax.jms.JMSException
Delegates the call to the wrapped producer.

Specified by:
getDisableMessageID in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

getDeliveryMode

public int getDeliveryMode()
                    throws javax.jms.JMSException
Delegates the call to the wrapped producer.

Specified by:
getDeliveryMode in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

getPriority

public int getPriority()
                throws javax.jms.JMSException
Delegates the call to the wrapped producer.

Specified by:
getPriority in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

getTimeToLive

public long getTimeToLive()
                   throws javax.jms.JMSException
Delegates the call to the wrapped producer.

Specified by:
getTimeToLive in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

getDisableMessageTimestamp

public boolean getDisableMessageTimestamp()
                                   throws javax.jms.JMSException
Delegates the call to the wrapped producer.

Specified by:
getDisableMessageTimestamp in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

send

public void send(javax.jms.Message message)
          throws javax.jms.JMSException
Delegates the call to the wrapped producer.

Specified by:
send in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

send

public void send(javax.jms.Message message,
                 int deliveryMode,
                 int priority,
                 long timeToLive)
          throws javax.jms.JMSException
Delegates the call to the wrapped producer.

Specified by:
send in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

send

public void send(javax.jms.Destination dest,
                 javax.jms.Message message)
          throws javax.jms.JMSException
Delegates the call to the wrapped producer.

Specified by:
send in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

send

public void send(javax.jms.Destination dest,
                 javax.jms.Message message,
                 int deliveryMode,
                 int priority,
                 long timeToLive)
          throws javax.jms.JMSException
Delegates the call to the wrapped producer.

Specified by:
send in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

close

public void close()
           throws javax.jms.JMSException
Delegates the call to the wrapped producer.

Specified by:
close in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

checkValidity

protected void checkValidity()
                      throws javax.jms.IllegalStateException
Checks the validity of the subscriber instance.

Throws:
javax.jms.IllegalStateException

Joram ${version}

Copyright ? 2005 Scalagent - All rights reserved