Class OutboundPublisher
- java.lang.Object
-
- org.objectweb.joram.client.connector.OutboundProducer
-
- org.objectweb.joram.client.connector.OutboundPublisher
-
- All Implemented Interfaces:
AutoCloseable,MessageProducer,TopicPublisher
public class OutboundPublisher extends OutboundProducer implements TopicPublisher
AnOutboundPublisherinstance wraps a JMS producer for a component involved in PubSub outbound messaging.
-
-
Constructor Summary
Constructors Constructor Description OutboundPublisher(MessageProducer producer, OutboundSession session)Constructs anOutboundPublisherinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TopicgetTopic()Delegates the call to the wrapped producer.voidpublish(Message message)Delegates the call to the wrapped producer.voidpublish(Message message, int deliveryMode, int priority, long timeToLive)Delegates the call to the wrapped producer.voidpublish(Topic topic, Message message)Delegates the call to the wrapped producer.voidpublish(Topic topic, Message message, int deliveryMode, int priority, long timeToLive)Delegates the call to the wrapped producer.-
Methods inherited from class org.objectweb.joram.client.connector.OutboundProducer
checkValidity, close, getDeliveryDelay, getDeliveryMode, getDestination, getDisableMessageID, getDisableMessageTimestamp, getPriority, getTimeToLive, send, send, send, send, send, send, send, send, setDeliveryDelay, setDeliveryMode, setDisableMessageID, setDisableMessageTimestamp, setPriority, setTimeToLive
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.jms.MessageProducer
close, getDeliveryDelay, getDeliveryMode, getDestination, getDisableMessageID, getDisableMessageTimestamp, getPriority, getTimeToLive, send, send, send, send, send, send, send, send, setDeliveryDelay, setDeliveryMode, setDisableMessageID, setDisableMessageTimestamp, setPriority, setTimeToLive
-
-
-
-
Field Detail
-
logger
private static final Logger logger
-
DEBUG
private static final boolean DEBUG
-
-
Constructor Detail
-
OutboundPublisher
OutboundPublisher(MessageProducer producer, OutboundSession session)
Constructs anOutboundPublisherinstance.- Parameters:
producer- The JMS producer to wrap.session- The OutboundSession the publisher belongs to.
-
-
Method Detail
-
getTopic
public Topic getTopic() throws JMSException
Delegates the call to the wrapped producer.- Specified by:
getTopicin interfaceTopicPublisher- Throws:
JMSException
-
publish
public void publish(Message message, int deliveryMode, int priority, long timeToLive) throws JMSException
Delegates the call to the wrapped producer.- Specified by:
publishin interfaceTopicPublisher- Throws:
JMSException
-
publish
public void publish(Message message) throws JMSException
Delegates the call to the wrapped producer.- Specified by:
publishin interfaceTopicPublisher- Throws:
JMSException
-
publish
public void publish(Topic topic, Message message, int deliveryMode, int priority, long timeToLive) throws JMSException
Delegates the call to the wrapped producer.- Specified by:
publishin interfaceTopicPublisher- Throws:
JMSException
-
publish
public void publish(Topic topic, Message message) throws JMSException
Delegates the call to the wrapped producer.- Specified by:
publishin interfaceTopicPublisher- Throws:
JMSException
-
-