MessageConsumer object to receive messages from a destination.
More...
#include <javax_jms_MessageConsumer.h>
Inheritance diagram for javax::jms::MessageConsumer:


Public Types | |
| enum | { xmogDefaultFlags = xmog_base::GLOBAL, xmogMajorVersion = 3, xmogMinorVersion = 2, xmogPatchVersion = 9, xmogBuildNumber = 2047 } |
|
typedef ::xmog_java_array_template< ::javax::jms::MessageConsumer > | array1D |
|
typedef ::xmog_java_array_template< ::xmog_java_array_template< ::javax::jms::MessageConsumer > > | array2D |
Public Member Functions | |
| virtual void | close (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Closes the message consumer. | |
| virtual ::javax::jms::MessageListener | getMessageListener (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Gets the message consumer's MessageListener. | |
| virtual ::java::lang::String | getMessageSelector (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Gets this message consumer's message selector expression. | |
| virtual ::javax::jms::Message | receive (jlong timeout,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Receives the next message that arrives within the specified timeout interval. | |
| virtual ::javax::jms::Message | receive (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Receives the next message produced for this message consumer. | |
| virtual ::javax::jms::Message | receiveNoWait (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Receives the next message if one is immediately available. | |
| virtual void | setMessageListener (const ::javax::jms::MessageListener &listener,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Sets the message consumer's MessageListener. | |
MessageConsumer object to receive messages from a destination.
A MessageConsumer object is created by passing a Destination object to a message-consumer creation method supplied by a session.
MessageConsumer is the parent interface for all message consumers.
A message consumer can be created with a message selector. A message selector allows the client to restrict the messages delivered to the message consumer to those that match the selector.
A client may either synchronously receive a message consumer's messages or have the consumer asynchronously deliver them as they arrive.
For synchronous receipt, a client can request the next message from a message consumer using one of its receive methods. There are several variations of receive that allow a client to poll or wait for the next message.
For asynchronous delivery, a client can register a MessageListener object with a message consumer. As messages arrive at the message consumer, it delivers them by calling the MessageListener's onMessage method.
It is a client programming error for a MessageListener to throw an exception.
Rich Burridge
|
||||||||||||
|
Closes the message consumer.
Since a provider may allocate some resources on behalf of a
This call blocks until a
|
|
||||||||||||
|
Gets the message consumer's
|
|
||||||||||||
|
Gets this message consumer's message selector expression.
|
|
||||||||||||||||
|
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
|
|
||||||||||||
|
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
|
|
||||||||||||
|
Receives the next message if one is immediately available.
|
|
||||||||||||||||
|
Sets the message consumer's Setting the message listener to null is the equivalent of unsetting the message listener for the message consumer.
The effect of calling
|
1.4.1