Apache Qpid C++ API
Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET Apache Qpid Documentation

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 Jun 7 17:49:08 2010 for Qpid C++ Client API by doxygen 1.6.2-20100208