public class QueueSessionImpl extends JmsSession implements XAQueueSession, QueueSession
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 |
---|
QueueSessionImpl(ConnectionImpl connection,
boolean isTransacted,
int ackMode,
boolean isXA)
Creates the session
|
Modifier and Type | Method and Description |
---|---|
TopicSubscriber |
createDurableSubscriber(Topic topic,
java.lang.String name)
Creates a durable subscriber to receive messages.
|
TopicSubscriber |
createDurableSubscriber(Topic topic,
java.lang.String name,
java.lang.String messageSelector,
boolean noLocal)
Creates a subscriber to receive messages.
|
QueueReceiver |
createReceiver(Queue queue)
Creates a receiver to receive messages.
|
QueueReceiver |
createReceiver(Queue queue,
java.lang.String messageSelector)
Creates a receiver to receive messages.
|
QueueSender |
createSender(Queue queue)
Creates a QueueSender to send messages to a queue.
|
TemporaryTopic |
createTemporaryTopic()
Creates a temporary topic.
|
Topic |
createTopic(java.lang.String topicName)
Creates a new topic.
|
QueueSession |
getQueueSession() |
void |
unsubscribe(java.lang.String name)
Unsubscribe from a durable subscription.
|
acknowledge, acquireListenSemaphore, addConsumer, checkOpen, close, commit, commit, createBrowser, createBrowser, createBytesMessage, createConsumer, createConsumer, createConsumer, createMapMessage, createMessage, createObjectMessage, createObjectMessage, createProducer, createQueue, createStreamMessage, createTemporaryQueue, createTextMessage, createTextMessage, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
commit, getSession, getTransacted, getXAResource, rollback
close, createBrowser, createBrowser, createBytesMessage, createConsumer, createConsumer, createConsumer, createMapMessage, createMessage, createObjectMessage, createObjectMessage, createProducer, createQueue, createStreamMessage, createTemporaryQueue, createTextMessage, createTextMessage, getAcknowledgeMode, getMessageListener, recover, run, setMessageListener
createBrowser, createBrowser, createQueue, createTemporaryQueue
public QueueSessionImpl(ConnectionImpl connection, boolean isTransacted, int ackMode, boolean isXA) throws JMSException
JMSException
public QueueReceiver createReceiver(Queue queue) throws JMSException
createReceiver
in interface QueueSession
queue
- the queue to receive messages from.JMSException
public QueueReceiver createReceiver(Queue queue, java.lang.String messageSelector) throws JMSException
createReceiver
in interface QueueSession
queue
- the queue to receive messages from.messageSelector
- query to restrict the messages.JMSException
public QueueSender createSender(Queue queue) throws JMSException
createSender
in interface QueueSession
queue
- the queue to send messages to.JMSException
public Topic createTopic(java.lang.String topicName) throws JMSException
createTopic
in interface Session
createTopic
in class JmsSession
JMSException
public TemporaryTopic createTemporaryTopic() throws JMSException
createTemporaryTopic
in interface Session
createTemporaryTopic
in class JmsSession
JMSException
public TopicSubscriber createDurableSubscriber(Topic topic, java.lang.String name) throws JMSException
createDurableSubscriber
in interface Session
createDurableSubscriber
in class JmsSession
topic
- the topic to receive messages from.JMSException
public TopicSubscriber createDurableSubscriber(Topic topic, java.lang.String name, java.lang.String messageSelector, boolean noLocal) throws JMSException
createDurableSubscriber
in interface Session
createDurableSubscriber
in class JmsSession
topic
- the topic to receive messages from.messageSelector
- topic to restrict the messages.noLocal
- if true, don't receive messages we've sentJMSException
public void unsubscribe(java.lang.String name) throws JMSException
unsubscribe
in interface Session
unsubscribe
in class JmsSession
JMSException
public QueueSession getQueueSession()
getQueueSession
in interface XAQueueSession