Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET Apache Qpid Documentation
Public Member Functions
qpid::client::MessageListener Class Reference

Implement a subclass of MessageListener and subscribe it using the SubscriptionManager to receive messages. More...

#include <qpid/client/MessageListener.h>

List of all members.

Public Member Functions

virtual ~MessageListener ()
virtual void received (Message &msg)=0
 Called for each message arriving from the broker.

Detailed Description

Implement a subclass of MessageListener and subscribe it using the SubscriptionManager to receive messages.

Another way to receive messages is by using a LocalQueue.

Using a MessageListener

Definition at line 87 of file MessageListener.h.


Constructor & Destructor Documentation

virtual qpid::client::MessageListener::~MessageListener ( ) [virtual]

Member Function Documentation

virtual void qpid::client::MessageListener::received ( Message msg) [pure virtual]

Called for each message arriving from the broker.

Override in your own subclass to process messages.


The documentation for this class was generated from the following file:

Qpid C++ API Reference
Generated on Mon Aug 22 2011 for Qpid C++ Client API by doxygen 1.7.4