com::pcbsys::nirvana::client::nConsumeEventFactory Class Reference

This class is used to facilitate creation of nConsumeEvent objects. More...

#include <nConsumeEventFactory.h>

Static Public Member Functions

static nConsumeEventcreate (unsigned char *tag, int tagLength, nEventProperties *pProps, unsigned char *data, int dataLength, longlong TTL, bool isPersistent)
 Creates an nConsumeEvent object based on the parameters supplied. More...
 
static nConsumeEventcreate (unsigned char *tag, int tagLength, unsigned char *data, int dataLength, longlong TTL, bool isPersistent)
 Creates an nConsumeEvent object based on the parameters supplied. More...
 
static nConsumeEventcreate (nEventProperties *pProps, std::string &tag, longlong TTL, bool isPersistent)
 Creates an nConsumeEvent object based on the parameters supplied. More...
 
static nConsumeEventcreate (std::string &tag, nEventProperties *pProps, unsigned char *data, int dataLength, longlong TTL, bool isPersistent)
 Creates an nConsumeEvent object based on the parameters supplied. More...
 

Detailed Description

This class is used to facilitate creation of nConsumeEvent objects.

Member Function Documentation

static nConsumeEvent* com::pcbsys::nirvana::client::nConsumeEventFactory::create ( unsigned char *  tag,
int  tagLength,
nEventProperties pProps,
unsigned char *  data,
int  dataLength,
longlong  TTL,
bool  isPersistent 
)
static

Creates an nConsumeEvent object based on the parameters supplied.

Parameters
tagThe tag for this event
*pPropsThe nEventProperties associated with this event
dataThe data for this event
dataLengththe length of the data
TTLthe Time To Live for this event
isPersistentflag to show whether the event is persistent of not
Returns
the newly created nConsumeEvent object
static nConsumeEvent* com::pcbsys::nirvana::client::nConsumeEventFactory::create ( unsigned char *  tag,
int  tagLength,
unsigned char *  data,
int  dataLength,
longlong  TTL,
bool  isPersistent 
)
static

Creates an nConsumeEvent object based on the parameters supplied.

Parameters
tagThe tag for this event
tagLengththe length of the tag
dataThe data for this event
dataLengththe length of the data
TTLthe Time To Live for this event
isPersistentflag to show whether the event is persistent of not
Returns
the newly created nConsumeEvent object
static nConsumeEvent* com::pcbsys::nirvana::client::nConsumeEventFactory::create ( nEventProperties pProps,
std::string &  tag,
longlong  TTL,
bool  isPersistent 
)
static

Creates an nConsumeEvent object based on the parameters supplied.

Parameters
*pPropsThe nEventProperties associated with this event
tagThe tag for this event
TTLthe Time To Live for this event
isPersistentflag to show whether the event is persistent of not
Returns
the newly created nConsumeEvent object
static nConsumeEvent* com::pcbsys::nirvana::client::nConsumeEventFactory::create ( std::string &  tag,
nEventProperties pProps,
unsigned char *  data,
int  dataLength,
longlong  TTL,
bool  isPersistent 
)
static

Creates an nConsumeEvent object based on the parameters supplied.

Parameters
tagThe tag for this event
pPropsevent properties
dataThe data for this event
dataLengththe length of the data
TTLthe Time To Live for this event
isPersistentflag to show whether the event is persistent of not
Returns
the newly created nConsumeEvent object