| Modifier and Type | Field and Description |
|---|---|
| protected final MessageConsumer |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public MessageListener | getMessageListener()
Implements jakarta. Gets the |
| public String | getMessageSelector()
Implements jakarta. Gets this message consumer's message selector expression. |
| public boolean | getNoLocal()
Implements jakarta. Gets the |
| public Queue | getQueue()
Implements jakarta. Gets the |
| public Topic | getTopic()
Implements jakarta. Gets the |
| public Message | receive()
Implements jakarta. Receives the next message produced for this message consumer. |
| public Message | receive(long
the timeout value (in milliseconds) timeout)Implements jakarta. Receives the next message that arrives within the specified timeout interval. |
| public Message | receiveNoWait()
Implements jakarta. Receives the next message if one is immediately available. |
| public void | setMessageListener(MessageListener
the listener to which the messages are to be delivered messageListener)Implements jakarta. Sets the |
| public String |
| target | back to summary |
|---|---|
| protected final MessageConsumer target | |
| CachedMessageConsumer | back to summary |
|---|---|
| public CachedMessageConsumer(MessageConsumer target) | |
| close | back to summary |
|---|---|
| public void close() throws JMSException Implements jakarta. Doc from jakarta. Closes the message consumer.
Since a provider may allocate some resources on behalf of a
This call will block until a If this method is called whilst a message listener is in progress in another thread then it will block until the message listener has completed.
This method may be called from a message listener's
This method is the only
| |
| getMessageListener | back to summary |
|---|---|
| public MessageListener getMessageListener() throws JMSException Implements jakarta. Doc from jakarta. Gets the
This method must not be used in a Jakarta EE web or EJB application. Doing so may cause a
| |
| getMessageSelector | back to summary |
|---|---|
| public String getMessageSelector() throws JMSException Implements jakarta. Doc from jakarta. Gets this message consumer's message selector expression.
| |
| getNoLocal | back to summary |
|---|---|
| public boolean getNoLocal() throws JMSException Implements jakarta. Doc from jakarta. Gets the
| |
| getQueue | back to summary |
|---|---|
| public Queue getQueue() throws JMSException Implements jakarta. Doc from jakarta. Gets the
| |
| getTopic | back to summary |
|---|---|
| public Topic getTopic() throws JMSException Implements jakarta. Doc from jakarta. Gets the
| |
| receive | back to summary |
|---|---|
| public Message receive() throws JMSException Implements jakarta. Doc from jakarta. Receives the next message produced for this message consumer. This call blocks indefinitely until a message is produced or until this message consumer is closed.
If this
| |
| receive | back to summary |
|---|---|
| public Message receive(long timeout) throws JMSException Implements jakarta. Doc from jakarta. Receives the next message that arrives within the specified timeout interval.
This call blocks until a message arrives, the timeout expires, or this message consumer is closed. A
| |
| receiveNoWait | back to summary |
|---|---|
| public Message receiveNoWait() throws JMSException Implements jakarta. Doc from jakarta. Receives the next message if one is immediately available.
| |
| setMessageListener | back to summary |
|---|---|
| public void setMessageListener(MessageListener messageListener) throws JMSException Implements jakarta. Doc from jakarta. Sets the
Setting the the
The effect of calling this method while messages are being consumed by an existing listener or the
This method must not be used in a Jakarta EE web or EJB application. Doing so may cause a
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |