Package | com.pcbsys.nirvana.client |
Class | public class nProtobufEventFactory |
Inheritance | nProtobufEventFactory ![]() |
Public Methods
Method | Defined By | ||
---|---|---|---|
create(data:ByteArray, type:ByteArray, tag:String, TTL:Long = null, isPersistent:Boolean = true):nProtobufEvent [static]
Creates an nProtobufEvent object based on the parameters supplied
| nProtobufEventFactory |
Method Detail
create | () | method |
public static function create(data:ByteArray, type:ByteArray, tag:String, TTL:Long = null, isPersistent:Boolean = true):nProtobufEvent
Creates an nProtobufEvent object based on the parameters supplied
Parameters
data:ByteArray — The message type for this event as a ByteArray
| |
type:ByteArray — The data for this event.
| |
tag:String — The tag for this event as a String
| |
TTL:Long (default = null ) — The Time to Live for this event
| |
isPersistent:Boolean (default = true ) — flag to show whether the event is persistent or not
|
nProtobufEvent — nProtobufEvent the new event
|