qpid::cluster::Event Class Reference

Events are sent to/received from the cluster. More...

#include <Event.h>

Collaboration diagram for qpid::cluster::Event:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Event (EventType t=DATA, const ConnectionId &c=ConnectionId(), size_t size=0, uint32_t id=0)
 Create an event to mcast with a buffer of size bytes.
void mcast (const Cpg::Name &name, Cpg &cpg) const
EventType getType () const
ConnectionId getConnectionId () const
MemberId getMemberId () const
size_t getSize () const
char * getData ()
const char * getData () const
size_t getId () const
bool isCluster () const
bool isConnection () const
 operator framing::Buffer () const

Static Public Member Functions

static Event delivered (const MemberId &m, void *data, size_t size)
 Create an event copied from delivered data.
static Event control (const framing::AMQBody &, const ConnectionId &, uint32_t id=0)
 Create an event containing a control.


Detailed Description

Events are sent to/received from the cluster.

Refcounted so they can be stored on queues.

Definition at line 43 of file Event.h.


Constructor & Destructor Documentation

qpid::cluster::Event::Event ( EventType  t = DATA,
const ConnectionId &  c = ConnectionId(),
size_t  size = 0,
uint32_t  id = 0 
)

Create an event to mcast with a buffer of size bytes.


Member Function Documentation

static Event qpid::cluster::Event::delivered ( const MemberId m,
void *  data,
size_t  size 
) [static]

Create an event copied from delivered data.


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

Generated on Thu Oct 16 13:38:30 2008 for Qpid by  doxygen 1.5.6