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

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.

Detailed Description

This class is used to facilitate creation of nProtobufEvent objects.

Member Function Documentation

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

Creates an nProtobufEvent object based on the parameters supplied.

Parameters:
tag The tag for this event as a byte[]
type The message type for this event as a byte[]
data The serialized message as a byte[]
TTL the Time To Live for this event
isPersistent flag 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:
tag The tag for this event as a String
type The message type for this event as a String
data The serialized message as a byte[]
TTL the Time To Live for this event
isPersistent flag to show whether the event is persistent of not
Returns:
the newly created nProtobufEvent object

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:
type The message type for this event as a String
data The serialized message as a byte[]
TTL the Time To Live for this event
isPersistent flag to show whether the event is persistent of not
Returns:
the newly created nProtobufEvent object