com.pcbsys.nirvana.client.nProtobufEventFactory Class Reference

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

Static Public Member Functions

static nProtobufEvent create (String type, byte[] data, long TTL, bool isPersistent)
 Creates an nProtobufEvent object based on the parameters supplied More...
 
static nProtobufEvent create (String tag, byte[] data, String type, long TTL, bool isPersistent)
 Creates an nProtobufEvent object based on the parameters supplied More...
 

Detailed Description

This class is used to facilitate creation of nProtobufEvent objects

Member Function Documentation

static nProtobufEvent com.pcbsys.nirvana.client.nProtobufEventFactory.create ( String  type,
byte[]  data,
long  TTL,
bool  isPersistent 
)
static

Creates an nProtobufEvent object based on the parameters supplied

Parameters
typeThe message type for this event as a String
dataThe serialized message as a byte[]
TTLTTL the Time To Live for this event
isPersistentflag to show whether the event is persistent of not
Returns
the newly created nProtobufEvent object
static nProtobufEvent com.pcbsys.nirvana.client.nProtobufEventFactory.create ( String  tag,
byte[]  data,
String  type,
long  TTL,
bool  isPersistent 
)
static

Creates an nProtobufEvent object based on the parameters supplied

Parameters
tagThe tag for this event as a String
typeThe message type for this event as a String
dataThe serialized message as a byte[]
TTLTTL the Time To Live for this event
isPersistentflag to show whether the event is persistent of not
Returns
the newly created nProtobufEvent object