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 (nEventProperties *pProps, std::string &tag, longlong TTL, bool isPersistent)
 Creates an nConsumeEvent object based on the parameters supplied.
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.
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.

Detailed Description

This class is used to facilitate creation of nConsumeEvent objects.

Member Function Documentation

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:
*pProps The nEventProperties associated with this event
tag The tag for this event
TTL the Time To Live for this event
isPersistent flag 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:
tag The tag for this event
tagLength the length of the tag
data The data for this event
dataLength the length of the data
TTL the Time To Live for this event
isPersistent flag 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,
nEventProperties pProps,
unsigned char *  data,
int  dataLength,
longlong  TTL,
bool  isPersistent 
) [static]

Creates an nConsumeEvent object based on the parameters supplied.

Parameters:
tag The tag for this event
*pProps The nEventProperties associated with this event
data The data for this event
dataLength the length of the data
TTL the Time To Live for this event
isPersistent flag to show whether the event is persistent of not
Returns:
the newly created nConsumeEvent object