|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.huihoo.jfox.ms.jms.base.SessionImpl
org.huihoo.jfox.ms.jms.queue.QueueSessionImpl
This class implements the JMS queue session. The queue session object is received from a queue connection.
| Field Summary |
| Fields inherited from interface javax.jms.Session |
AUTO_ACKNOWLEDGE, CLIENT_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE |
| Constructor Summary | |
QueueSessionImpl(ConnectionImpl connection,
boolean transacted,
int acknowledgeMode)
|
|
| Method Summary | |
protected void |
addReceiver(QueueReceiverImpl queueReceiver)
Add the specified receiver to the list of managed receivers. |
javax.jms.QueueBrowser |
createBrowser(javax.jms.Queue queue)
Creates a QueueBrowser object to peek at the messages on
the specified queue. |
javax.jms.QueueBrowser |
createBrowser(javax.jms.Queue queue,
java.lang.String messageSelector)
Creates a QueueBrowser object to peek at the messages on
the specified queue using a message selector. |
javax.jms.Queue |
createQueue(java.lang.String queueName)
Create a reference to a queue with given a Queue name. |
javax.jms.QueueReceiver |
createReceiver(javax.jms.Queue queue)
Creates a QueueSender object to send messages to the specified queue. |
javax.jms.QueueReceiver |
createReceiver(javax.jms.Queue queue,
java.lang.String messageSelector)
|
javax.jms.QueueSender |
createSender(javax.jms.Queue queue)
Create a QueueSender object to send messages to the specified queue. |
javax.jms.TemporaryQueue |
createTemporaryQueue()
Creates a TemporaryQueue object. |
| Methods inherited from class org.huihoo.jfox.ms.jms.base.SessionImpl |
addConsumer, close, commit, createBytesMessage, createMapMessage, createMessage, createObjectMessage, createObjectMessage, createStreamMessage, createTextMessage, createTextMessage, getAcknowledgeMode, getConnection, getMessageListener, getTransacted, isClosed, isTransacted, recover, rollback, run, sendMessage, setMessageListener, start, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.jms.Session |
close, commit, createBytesMessage, createMapMessage, createMessage, createObjectMessage, createObjectMessage, createStreamMessage, createTextMessage, createTextMessage, getMessageListener, getTransacted, recover, rollback, run, setMessageListener |
| Constructor Detail |
public QueueSessionImpl(ConnectionImpl connection,
boolean transacted,
int acknowledgeMode)
| Method Detail |
public javax.jms.Queue createQueue(java.lang.String queueName)
throws javax.jms.JMSException
createQueue in interface javax.jms.QueueSessionqueueName -
javax.jms.JMSException
public javax.jms.QueueReceiver createReceiver(javax.jms.Queue queue)
throws javax.jms.JMSException
createReceiver in interface javax.jms.QueueSessionqueue - the Queue to access, or null if this is an unidentified
producer
javax.jms.JMSException
public javax.jms.QueueReceiver createReceiver(javax.jms.Queue queue,
java.lang.String messageSelector)
throws javax.jms.JMSException
createReceiver in interface javax.jms.QueueSessionqueue - the Queue to access, or null if this is an unidentified
producermessageSelector -
javax.jms.JMSException
public javax.jms.QueueSender createSender(javax.jms.Queue queue)
throws javax.jms.JMSException
createSender in interface javax.jms.QueueSessionqueue -
javax.jms.JMSException
public javax.jms.QueueBrowser createBrowser(javax.jms.Queue queue)
throws javax.jms.JMSException
QueueBrowser object to peek at the messages on
the specified queue.
createBrowser in interface javax.jms.QueueSessionqueue - the Queue to access
javax.jms.JMSException - if the session fails to create a browser due to some
internal error.
InvalidDestinationException - if an invalid queue is specified.
public javax.jms.QueueBrowser createBrowser(javax.jms.Queue queue,
java.lang.String messageSelector)
throws javax.jms.JMSException
QueueBrowser object to peek at the messages on
the specified queue using a message selector.
createBrowser in interface javax.jms.QueueSessionqueue - the Queue to accessmessageSelector - only messages with properties matching the message selector
expression are delivered. A value of null or an empty string
indicates that there is no message selector for the message
consumer.
javax.jms.JMSException - if the session fails to create a browser due to some
internal error.
InvalidDestinationException - if an invalid queue is specified.
InvalidSelectorException - if the message selector is invalid.
public javax.jms.TemporaryQueue createTemporaryQueue()
throws javax.jms.JMSException
TemporaryQueue object. Its lifetime will be
that of the QueueConnection unless it is deleted earlier.
createTemporaryQueue in interface javax.jms.QueueSessionjavax.jms.JMSException - if the session fails to create a temporary queue due to
some internal error.
protected void addReceiver(QueueReceiverImpl queueReceiver)
throws javax.jms.JMSException
queueReceiver -
javax.jms.JMSException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||