#include <Event.h>
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. |
Refcounted so they can be stored on queues.
Definition at line 43 of file Event.h.
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.
static Event qpid::cluster::Event::delivered | ( | const MemberId & | m, | |
void * | data, | |||
size_t | size | |||
) | [static] |
Create an event copied from delivered data.