public class Event
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Event(NamedCache cache,
CachedObjectId id,
java.lang.String info,
byte[] object) |
Modifier and Type | Method and Description |
---|---|
NamedCache |
getCache()
The named cache that can be used to access the object associated with Id.
|
CachedObjectId |
getId()
The key to an object stored in the ScaleOut service to which the event is to be applied
|
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).
|
void |
setCache(NamedCache cache) |
void |
setId(CachedObjectId id) |
public Event(NamedCache cache, CachedObjectId id, java.lang.String info, byte[] object)
public CachedObjectId getId()
public void setId(CachedObjectId id)
public java.lang.String getInfo()
public byte[] getPayload()
public NamedCache getCache()
public void setCache(NamedCache cache)