#include <src/main/activemq/core/ActiveMQQueueBrowser.h>

Public Member Functions | |
| ActiveMQQueueBrowser (activemq::core::kernels::ActiveMQSessionKernel *session, const Pointer< commands::ConsumerId > &consumerId, const Pointer< commands::ActiveMQDestination > &destination, const std::string &selector, bool dispatchAsync) | |
| virtual | ~ActiveMQQueueBrowser () |
| virtual const cms::Queue * | getQueue () const |
| virtual std::string | getMessageSelector () const |
| virtual cms::MessageEnumeration * | getEnumeration () |
| Gets a pointer to an Enumeration object for browsing the Messages currently in the Queue in the order that a client would receive them. | |
| virtual void | close () |
| Closes this object and deallocates the appropriate resources. | |
| virtual bool | hasMoreMessages () |
Returns true if there are more Message in the Browser that can be retrieved via the nextMessage method. | |
| virtual cms::Message * | nextMessage () |
| Returns the Next Message in the Queue if one is present, if no more Message's are available then an Exception is thrown. | |
Friends | |
| class | Browser |
| activemq::core::ActiveMQQueueBrowser::ActiveMQQueueBrowser | ( | activemq::core::kernels::ActiveMQSessionKernel * | session, | |
| const Pointer< commands::ConsumerId > & | consumerId, | |||
| const Pointer< commands::ActiveMQDestination > & | destination, | |||
| const std::string & | selector, | |||
| bool | dispatchAsync | |||
| ) |
| virtual activemq::core::ActiveMQQueueBrowser::~ActiveMQQueueBrowser | ( | ) | [virtual] |
| virtual void activemq::core::ActiveMQQueueBrowser::close | ( | ) | [virtual] |
Closes this object and deallocates the appropriate resources.
The object is generally no longer usable after calling close.
| CMSException | - If an error occurs while the resource is being closed. |
Implements cms::Closeable.
| virtual cms::MessageEnumeration* activemq::core::ActiveMQQueueBrowser::getEnumeration | ( | ) | [virtual] |
Gets a pointer to an Enumeration object for browsing the Messages currently in the Queue in the order that a client would receive them.
The pointer returned is owned by the browser and should not be deleted by the client application.
| CMSException | if an internal error occurs. |
Implements cms::QueueBrowser.
| virtual std::string activemq::core::ActiveMQQueueBrowser::getMessageSelector | ( | ) | const [virtual] |
| CMSException | if an internal error occurs. |
Implements cms::QueueBrowser.
| virtual const cms::Queue* activemq::core::ActiveMQQueueBrowser::getQueue | ( | ) | const [virtual] |
| CMSException | if an internal error occurs. |
Implements cms::QueueBrowser.
| virtual bool activemq::core::ActiveMQQueueBrowser::hasMoreMessages | ( | ) | [virtual] |
Returns true if there are more Message in the Browser that can be retrieved via the nextMessage method.
If this method returns false and the nextMessage method is called then an Exception will be thrown.
Implements cms::MessageEnumeration.
| virtual cms::Message* activemq::core::ActiveMQQueueBrowser::nextMessage | ( | ) | [virtual] |
Returns the Next Message in the Queue if one is present, if no more Message's are available then an Exception is thrown.
If a Message object pointer is returned then that object becomes the property of the caller and must be deleted by the caller when finished.
| CMSException | if no more Message's currently in the Queue. |
Implements cms::MessageEnumeration.
friend class Browser [friend] |
1.6.1