public class Event
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Event(java.lang.String info,
byte[] payload) |
Modifier and Type | Method and Description |
---|---|
static Event |
deserialize(byte[] serializedEvent) |
java.lang.String |
getInfo()
An arbitrary user-provided UTF-8 String containing information about the event, passed from the client-side eventInfo
parameter that's passed into Pipeline.postEvent().
|
byte[] |
getPayload()
An optional payload of bytes that can hold data related to the event (typically a serialized object).
|
static byte[] |
serialize(Event event) |
public java.lang.String getInfo()
public byte[] getPayload()
public static byte[] serialize(Event event)
public static Event deserialize(byte[] serializedEvent)