Package org.ow2.joram.jakarta.connector
Class OutboundPublisher
- java.lang.Object
-
- org.ow2.joram.jakarta.connector.OutboundProducer
-
- org.ow2.joram.jakarta.connector.OutboundPublisher
-
- All Implemented Interfaces:
jakarta.jms.MessageProducer,jakarta.jms.TopicPublisher,AutoCloseable
public class OutboundPublisher extends OutboundProducer implements jakarta.jms.TopicPublisher
AnOutboundPublisherinstance wraps a JMS producer for a component involved in PubSub outbound messaging.
-
-
Constructor Summary
Constructors Constructor Description OutboundPublisher(jakarta.jms.MessageProducer producer, OutboundSession session)Constructs anOutboundPublisherinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.jms.TopicgetTopic()Delegates the call to the wrapped producer.voidpublish(jakarta.jms.Message message)Delegates the call to the wrapped producer.voidpublish(jakarta.jms.Message message, int deliveryMode, int priority, long timeToLive)Delegates the call to the wrapped producer.voidpublish(jakarta.jms.Topic topic, jakarta.jms.Message message)Delegates the call to the wrapped producer.voidpublish(jakarta.jms.Topic topic, jakarta.jms.Message message, int deliveryMode, int priority, long timeToLive)Delegates the call to the wrapped producer.-
Methods inherited from class org.ow2.joram.jakarta.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 jakarta.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(jakarta.jms.MessageProducer producer, OutboundSession session)Constructs anOutboundPublisherinstance.- Parameters:
producer- The JMS producer to wrap.session- The OutboundSession the publisher belongs to.
-
-
Method Detail
-
getTopic
public jakarta.jms.Topic getTopic() throws jakarta.jms.JMSExceptionDelegates the call to the wrapped producer.- Specified by:
getTopicin interfacejakarta.jms.TopicPublisher- Throws:
jakarta.jms.JMSException
-
publish
public void publish(jakarta.jms.Message message, int deliveryMode, int priority, long timeToLive) throws jakarta.jms.JMSExceptionDelegates the call to the wrapped producer.- Specified by:
publishin interfacejakarta.jms.TopicPublisher- Throws:
jakarta.jms.JMSException
-
publish
public void publish(jakarta.jms.Message message) throws jakarta.jms.JMSExceptionDelegates the call to the wrapped producer.- Specified by:
publishin interfacejakarta.jms.TopicPublisher- Throws:
jakarta.jms.JMSException
-
publish
public void publish(jakarta.jms.Topic topic, jakarta.jms.Message message, int deliveryMode, int priority, long timeToLive) throws jakarta.jms.JMSExceptionDelegates the call to the wrapped producer.- Specified by:
publishin interfacejakarta.jms.TopicPublisher- Throws:
jakarta.jms.JMSException
-
publish
public void publish(jakarta.jms.Topic topic, jakarta.jms.Message message) throws jakarta.jms.JMSExceptionDelegates the call to the wrapped producer.- Specified by:
publishin interfacejakarta.jms.TopicPublisher- Throws:
jakarta.jms.JMSException
-
-