cms::MessageListener Class Reference

#include <src/main/cms/MessageListener.h>


Detailed Description

A MessageListener object is used to receive asynchronously delivered messages.

Public Member Functions

virtual ~MessageListener ()
virtual void onMessage (const Message *message)=0
 Called asynchronously when a new message is received, the message reference can be to any othe Message types.

Constructor & Destructor Documentation

virtual cms::MessageListener::~MessageListener (  )  [inline, virtual]


Member Function Documentation

virtual void cms::MessageListener::onMessage ( const Message message  )  [pure virtual]

Called asynchronously when a new message is received, the message reference can be to any othe Message types.

a dynamic cast is used to find out what type of message this is. The lifetime of this object is only guaranteed to be for life of the onMessage function after this returns the message may no longer exists. User should copy the data or clone the message if they wish to keep something around about this message.

It is considered a programming error for this method to throw an exception.

Parameters:
message Message object const pointer recipient does not own.


The documentation for this class was generated from the following file:
Generated on Sat Oct 27 16:57:01 2007 for cms-1.2 by  doxygen 1.5.3