qpid::framing::Correlator Class Reference

Correlate responses with actions established when sending the request. More...

#include <Correlator.h>

List of all members.

Public Types

typedef shared_ptr< AMQResponseBodyResponsePtr
typedef boost::function< void(ResponsePtr)> Action

Public Member Functions

void request (RequestId id, Action doOnResponse)
 Note that request with id was sent, record an action to call when a response arrives.
bool response (shared_ptr< AMQResponseBody >)
 Note response received, call action for associated request if any.
void mark (RequestId mark)
 Note the given execution mark was received, call actions for any requests that are impicitly responded to.


Detailed Description

Correlate responses with actions established when sending the request.

THREAD UNSAFE.


Member Function Documentation

bool qpid::framing::Correlator::response ( shared_ptr< AMQResponseBody  ) 

Note response received, call action for associated request if any.

Return true of some action(s) were executed.


The documentation for this class was generated from the following file:
Generated on Tue Apr 17 14:22:19 2007 for Qpid by  doxygen 1.4.7