OpenMAMA C++ API
Wombat::MamaInboxCallback Class Referenceabstract

The MamaInboxCallback gets invoked when a message arrives in an inbox or when inbox related errors arise. More...

#include <MamaInboxCallback.h>

Public Member Functions

virtual ~MamaInboxCallback (void)
 
virtual void onDestroy (MamaInbox *inbox, void *closure)
 This method is invoked when an inbox has been completely destroyed, the client can have confidence that no further events will be placed on the queue for this inbox. More...
 
virtual void onMsg (MamaInbox *inbox, MamaMsg &msg)=0
 
virtual void onError (MamaInbox *inbox, const MamaStatus &status)=0
 

Detailed Description

The MamaInboxCallback gets invoked when a message arrives in an inbox or when inbox related errors arise.

Constructor & Destructor Documentation

§ ~MamaInboxCallback()

virtual Wombat::MamaInboxCallback::~MamaInboxCallback ( void  )
inlinevirtual

Member Function Documentation

§ onDestroy()

virtual void Wombat::MamaInboxCallback::onDestroy ( MamaInbox inbox,
void *  closure 
)
inlinevirtual

This method is invoked when an inbox has been completely destroyed, the client can have confidence that no further events will be placed on the queue for this inbox.

Parameters
[in]inboxThe MamaInbox.
[in]closureThe closure passed to the create function.

§ onMsg()

virtual void Wombat::MamaInboxCallback::onMsg ( MamaInbox inbox,
MamaMsg msg 
)
pure virtual

§ onError()

virtual void Wombat::MamaInboxCallback::onError ( MamaInbox inbox,
const MamaStatus status 
)
pure virtual