Class OutboundTopicSession
- java.lang.Object
-
- org.objectweb.joram.client.connector.OutboundSession
-
- org.objectweb.joram.client.connector.OutboundTopicSession
-
- All Implemented Interfaces:
AutoCloseable,Runnable,Session,TopicSession
public class OutboundTopicSession extends OutboundSession implements TopicSession
AnOutboundTopicSessioninstance wraps a JMS TopicSession (XA or not) for a component involved in PubSub outbound messaging.
-
-
Field Summary
Fields Modifier and Type Field Description private static booleanDEBUGprivate static Loggerlogger-
Fields inherited from class org.objectweb.joram.client.connector.OutboundSession
cnx, sess, started, transacted, valid
-
Fields inherited from interface javax.jms.Session
AUTO_ACKNOWLEDGE, CLIENT_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE, SESSION_TRANSACTED
-
-
Constructor Summary
Constructors Constructor Description OutboundTopicSession(Session sess, OutboundConnection cnx)Constructs anOutboundTopicSessioninstance.OutboundTopicSession(Session sess, OutboundConnection cnx, boolean transacted)Constructs anOutboundTopicSessioninstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QueueBrowsercreateBrowser(Queue queue)API method.QueueBrowsercreateBrowser(Queue queue, String selector)API method.TopicPublishercreatePublisher(Topic topic)Delegates the call to the wrapped JMS session.QueuecreateQueue(String queueName)API method.TopicSubscribercreateSubscriber(Topic topic)Delegates the call to the wrapped JMS session.TopicSubscribercreateSubscriber(Topic topic, String selector, boolean noLocal)Delegates the call to the wrapped JMS session.TemporaryQueuecreateTemporaryQueue()API method.-
Methods inherited from class org.objectweb.joram.client.connector.OutboundSession
checkValidity, close, commit, createBytesMessage, createConsumer, createConsumer, createConsumer, createDurableConsumer, createDurableConsumer, createDurableSubscriber, createDurableSubscriber, createMapMessage, createMessage, createObjectMessage, createObjectMessage, createProducer, createSharedConsumer, createSharedConsumer, createSharedDurableConsumer, createSharedDurableConsumer, createStreamMessage, createTemporaryTopic, createTextMessage, createTextMessage, createTopic, getAcknowledgeMode, getMessageListener, getTransacted, isStarted, recover, rollback, run, setMessageListener, start, toString, unsubscribe
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.jms.Session
close, commit, createBytesMessage, createConsumer, createConsumer, createConsumer, createDurableConsumer, createDurableConsumer, createMapMessage, createMessage, createObjectMessage, createObjectMessage, createProducer, createSharedConsumer, createSharedConsumer, createSharedDurableConsumer, createSharedDurableConsumer, createStreamMessage, createTextMessage, createTextMessage, getAcknowledgeMode, getMessageListener, getTransacted, recover, rollback, run, setMessageListener
-
Methods inherited from interface javax.jms.TopicSession
createDurableSubscriber, createDurableSubscriber, createTemporaryTopic, createTopic, unsubscribe
-
-
-
-
Field Detail
-
logger
private static final Logger logger
-
DEBUG
private static final boolean DEBUG
-
-
Constructor Detail
-
OutboundTopicSession
OutboundTopicSession(Session sess, OutboundConnection cnx)
Constructs anOutboundTopicSessioninstance.
-
OutboundTopicSession
OutboundTopicSession(Session sess, OutboundConnection cnx, boolean transacted)
Constructs anOutboundTopicSessioninstance.
-
-
Method Detail
-
createPublisher
public TopicPublisher createPublisher(Topic topic) throws JMSException
Delegates the call to the wrapped JMS session.- Specified by:
createPublisherin interfaceTopicSession- Throws:
JMSException
-
createSubscriber
public TopicSubscriber createSubscriber(Topic topic, String selector, boolean noLocal) throws JMSException
Delegates the call to the wrapped JMS session.- Specified by:
createSubscriberin interfaceTopicSession- Throws:
JMSException
-
createSubscriber
public TopicSubscriber createSubscriber(Topic topic) throws JMSException
Delegates the call to the wrapped JMS session.- Specified by:
createSubscriberin interfaceTopicSession- Throws:
JMSException
-
createBrowser
public QueueBrowser createBrowser(Queue queue, String selector) throws JMSException
API method.- Specified by:
createBrowserin interfaceSession- Overrides:
createBrowserin classOutboundSession- Throws:
IllegalStateException- Systematically.JMSException
-
createBrowser
public QueueBrowser createBrowser(Queue queue) throws JMSException
API method.- Specified by:
createBrowserin interfaceSession- Overrides:
createBrowserin classOutboundSession- Throws:
IllegalStateException- Systematically.JMSException
-
createQueue
public Queue createQueue(String queueName) throws JMSException
API method.- Specified by:
createQueuein interfaceSession- Overrides:
createQueuein classOutboundSession- Throws:
IllegalStateException- Systematically.JMSException
-
createTemporaryQueue
public TemporaryQueue createTemporaryQueue() throws JMSException
API method.- Specified by:
createTemporaryQueuein interfaceSession- Overrides:
createTemporaryQueuein classOutboundSession- Throws:
jIllegalStateException- Systematically.JMSException
-
-