Packagecom.pcbsys.nirvana.client
Classpublic class nProtobufEventFactory
InheritancenProtobufEventFactory Inheritance Object

This class is used to create nProtobufEvent's.



Public Methods
 MethodDefined 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

Returns
nProtobufEvent — nProtobufEvent the new event