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 (byte[] data, String type, long TTL, boolean isPersistent)
 Creates an nProtobufEvent object based on the parameters supplied. More...
 
static nProtobufEvent create (String tag, byte[] data, String type, long TTL, boolean isPersistent)
 Creates an nProtobufEvent object based on the parameters supplied. More...
 

Static Protected Member Functions

static nProtobufEvent create (byte[] tag, byte[] data, byte[] type, long TTL, boolean 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 ( byte[]  data,
String  type,
long  TTL,
boolean  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[]
TTLthe 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,
boolean  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[]
TTLthe 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 ( byte[]  tag,
byte[]  data,
byte[]  type,
long  TTL,
boolean  isPersistent 
)
staticprotected

Creates an nProtobufEvent object based on the parameters supplied.

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