com.tibco.cep.runtime.model.event

## Interface EventContext

-     public interface EventContext

  Represents the context in which a message that was received from a `Channel` leads to the creation of a `SimpleEvent`. Allows BusinessEvents to acknowledge and/or to reply to the message using the underlying transport of the associated `Channel`.
  Since:
    2.0.0

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `acknowledge()` Acknowledges the message that was deserialized into the event associated to this `EventContext`.
    `boolean` | `canReply()` Specifies if this `EventContext` can reply to the original message.
    `java.lang.Object` | `getMessage()` Gets the message that was deserialized into the event associated to this `EventContext`.
    `boolean` | `reply(SimpleEvent replyEvent)` Replies with the given `SimpleEvent` to the message that was deserialized into the event associated to this `EventContext`.

- - ### Method Detail

    - #### acknowledge

          void acknowledge()

      Acknowledges the message that was deserialized into the event associated to this `EventContext`.
      Since:
        2.0.0

    - #### reply

          boolean reply(SimpleEvent replyEvent)

      Replies with the given `SimpleEvent` to the message that was deserialized into the event associated to this `EventContext`.
      Parameters:
        `replyEvent` -
      Returns:
        true if successful
      Since:
        2.0.0

    - #### canReply

          boolean canReply()

      Specifies if this `EventContext` can reply to the original message.
      Returns:
        true if this `EventContext` can reply to the original message.
      Since:
        2.0.0

    - #### getMessage

          java.lang.Object getMessage()

      Gets the message that was deserialized into the event associated to this `EventContext`.
      Returns:
        the message that was deserialized into the event associated to this `EventContext`.
      Since:
        2.0.0