This class is used to facilitate creation of nProtobufEvent objects.
More...
This class is used to facilitate creation of nProtobufEvent objects.
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
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[] |
tag, |
|
|
byte[] |
data, |
|
|
byte[] |
type, |
|
|
long |
TTL, |
|
|
boolean |
isPersistent |
|
) |
| |
|
staticprotected |
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