com.tibco.cep.runtime.model.event

## Interface EventPayload

-     public interface EventPayload

  Represents the payload of a `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 {
  > ...
  > }`

  Since:
    2.0.0

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static java.lang.String` | `PAYLOAD_PROPERTY` Name of the payload property in the event schema.

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `toBytes()` Serializes this `EventPayload` to a byte array.

- - ### Field Detail

    - #### PAYLOAD_PROPERTY

          static final java.lang.String PAYLOAD_PROPERTY

      Name of the payload property in the event schema.
      Since:
        2.0.0
      See Also:
        Constant Field Values

  - ### Method Detail

    - #### toBytes

          byte[] toBytes()

      Serializes this `EventPayload` to a byte array.
      Returns:
        a serialization of this `EventPayload`.
      Throws:
        `java.lang.Exception`
      Since:
        2.0.0