public class TopicSessionImpl extends JmsSession implements XATopicSession, TopicSession
L, log
AUTO_ACKNOWLEDGE, CLIENT_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE, SESSION_TRANSACTED
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY
Constructor and Description |
---|
TopicSessionImpl(ConnectionImpl conn,
boolean isTransacted,
int ackMode,
boolean isXA) |
Modifier and Type | Method and Description |
---|---|
QueueBrowser |
createBrowser(Queue queue)
Creates a QueueBrowser to browse messages in the queue.
|
QueueBrowser |
createBrowser(Queue queue,
java.lang.String messageSelector)
Creates a QueueBrowser to browse messages in the queue.
|
TopicPublisher |
createPublisher(Topic topic)
Creates a TopicSender to send messages to a topic.
|
Queue |
createQueue(java.lang.String queueName)
Creates a new queue.
|
TopicSubscriber |
createSubscriber(Topic topic)
Creates a subscriber to receive messages.
|
TopicSubscriber |
createSubscriber(Topic topic,
java.lang.String messageSelector,
boolean noLocal)
Creates a subscriber to receive messages.
|
TemporaryQueue |
createTemporaryQueue()
Creates a temporary queue.
|
TopicSession |
getTopicSession() |
acknowledge, acquireListenSemaphore, addConsumer, checkOpen, close, commit, commit, createBytesMessage, createConsumer, createConsumer, createConsumer, createDurableSubscriber, createDurableSubscriber, createMapMessage, createMessage, createObjectMessage, createObjectMessage, createProducer, createStreamMessage, createTemporaryTopic, createTextMessage, createTextMessage, createTopic, end, forget, getAcknowledgeMode, getClientID, getMessageListener, getPublisherId, getSession, getTransacted, getTransactionTimeout, getXAResource, isActive, isClosed, isSameRM, prepare, recover, recover, releaseListenSemaphore, removeConsumer, rollback, rollback, rollbackImpl, run, send, setMessageListener, setTransactionTimeout, start, toString, unsubscribe
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
commit, getSession, getTransacted, getXAResource, rollback
close, createBytesMessage, createConsumer, createConsumer, createConsumer, createDurableSubscriber, createDurableSubscriber, createMapMessage, createMessage, createObjectMessage, createObjectMessage, createProducer, createStreamMessage, createTemporaryTopic, createTextMessage, createTextMessage, createTopic, getAcknowledgeMode, getMessageListener, recover, run, setMessageListener, unsubscribe
createDurableSubscriber, createDurableSubscriber, createTemporaryTopic, createTopic, unsubscribe
public TopicSessionImpl(ConnectionImpl conn, boolean isTransacted, int ackMode, boolean isXA) throws JMSException
JMSException
public TopicPublisher createPublisher(Topic topic) throws JMSException
createPublisher
in interface TopicSession
topic
- the topic to send messages to.JMSException
public TopicSubscriber createSubscriber(Topic topic) throws JMSException
createSubscriber
in interface TopicSession
topic
- the topic to receive messages from.JMSException
public TopicSubscriber createSubscriber(Topic topic, java.lang.String messageSelector, boolean noLocal) throws JMSException
createSubscriber
in interface TopicSession
topic
- the topic to receive messages from.messageSelector
- topic to restrict the messages.noLocal
- if true, don't receive messages we've sentJMSException
public QueueBrowser createBrowser(Queue queue) throws JMSException
createBrowser
in interface Session
createBrowser
in class JmsSession
queue
- the queue to send messages to.JMSException
public QueueBrowser createBrowser(Queue queue, java.lang.String messageSelector) throws JMSException
createBrowser
in interface Session
createBrowser
in class JmsSession
queue
- the queue to send messages to.JMSException
public Queue createQueue(java.lang.String queueName) throws JMSException
createQueue
in interface Session
createQueue
in class JmsSession
JMSException
public TemporaryQueue createTemporaryQueue() throws JMSException
createTemporaryQueue
in interface Session
createTemporaryQueue
in class JmsSession
JMSException
public TopicSession getTopicSession()
getTopicSession
in interface XATopicSession