com.tibco.cep.kernel.model.entity

## Interface Event

- All Superinterfaces:
    Entity
  All Known Subinterfaces:
    AdvisoryEvent, SimpleEvent, TimeEvent

      public interface Event
      extends Entity

  Base for events, which are immutable entities.
  Since:
    2.0.0

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `long` | `getTTL()` Gets the TTL (Time To Live) of the event, i.e. how long an event should be valid.
    `boolean` | `hasExpiryAction()` Checks whether the event has an expiry action.
    `void` | `onExpiry()` Called when the TTL expires.

    - ### Methods inherited from interface com.tibco.cep.kernel.model.entity.Entity

      `getExtId, getId`

- - ### Method Detail

    - #### getTTL

          long getTTL()

      Gets the TTL (Time To Live) of the event, i.e. how long an event should be valid. When the event expires, it will be removed from the working memory.
      Returns:
        the TTL of the event
      Since:
        2.0.0

    - #### hasExpiryAction

          boolean hasExpiryAction()

      Checks whether the event has an expiry action.
      Returns:
        true if the Event has an expiry action.
      Since:
        2.0.0

    - #### onExpiry

          void onExpiry()

      Called when the TTL expires.
      Since:
        2.0.0