#include <src/main/activemq/core/ActiveMQQueueBrowser.h>
Constructor & Destructor Documentation
virtual activemq::core::ActiveMQQueueBrowser::~ActiveMQQueueBrowser |
( |
| ) |
|
|
virtual |
Member Function Documentation
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.
- Exceptions
-
CMSException | - If an error occurs while the resource is being closed. |
Implements cms::Closeable.
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.
- Returns
- a pointer to a Queue Enumeration, this Pointer is owned by the QueueBrowser and should not be deleted by the client.
- Exceptions
-
CMSException | if an internal error occurs. |
Implements cms::QueueBrowser.
virtual std::string activemq::core::ActiveMQQueueBrowser::getMessageSelector |
( |
| ) |
const |
|
virtual |
- Returns
- the MessageSelector that is used on when this browser was created or empty string if no selector was present.
- Exceptions
-
CMSException | if an internal error occurs. |
Implements cms::QueueBrowser.
virtual const cms::Queue* activemq::core::ActiveMQQueueBrowser::getQueue |
( |
| ) |
const |
|
virtual |
- Returns
- the Queue that this browser is listening on.
- Exceptions
-
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.
- Returns
- true if more Message's are available in the Browser.
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.
- Returns
- The next Message in the Queue.
- Exceptions
-
CMSException | if no more Message's currently in the Queue. |
Implements cms::MessageEnumeration.
Friends And Related Function Documentation
The documentation for this class was generated from the following file: