public class EventPayload
extends java.lang.Object
PostedEventHandler
handlers. Event handlers are registered through ServiceEvents.setPostedEventHandler(Cache, PostedEventHandler)
.Constructor and Description |
---|
EventPayload(java.lang.String info,
byte[] payload)
Construct a new event payload.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEventInfo()
Retrieve the event info.
|
byte[] |
getPayload()
The binary payload associated with this event.
|
java.lang.String |
toString() |
public EventPayload(java.lang.String info, byte[] payload)
info
- the event info.payload
- the event payload.public java.lang.String getEventInfo()
public byte[] getPayload()
public java.lang.String toString()
toString
in class java.lang.Object