public interface EventPayload
SimpleEvent
.
Every implementation of this interface should have a public constuctor with these parameters:
TypeManager.TypeDescriptor
- describes the type of the event,byte[]
- contains the serialized form of the payload.For example:
public XyzPayload(TypeManager.TypeDescriptor descriptor, byte[] buf) throws Exception {
...
}
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PAYLOAD_PROPERTY
Name of the payload property in the event schema.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
toBytes()
Serializes this
EventPayload to a byte array. |
static final java.lang.String PAYLOAD_PROPERTY