java.lang.Object
com.espertech.esper.common.internal.event.bean.core.EventSenderBean
All Implemented Interfaces:
EventSender

public class EventSenderBean extends Object implements EventSender
Event sender for POJO Java object events.

Allows sending only event objects of the underlying type matching the event type, or implementing the interface or extending the type. Any other event object generates an error.

  • Constructor Details

  • Method Details

    • sendEvent

      public void sendEvent(Object theEvent)
      Description copied from interface: EventSender
      Processes the event object.

      Use the route method for sending events into the runtime from within UpdateListener code. to avoid the possibility of a stack overflow due to nested calls to sendEvent.

      Specified by:
      sendEvent in interface EventSender
      Parameters:
      theEvent - to process
    • routeEvent

      public void routeEvent(Object theEvent) throws EPException
      Description copied from interface: EventSender
      Route the event object back to the event stream processing runtime for internal dispatching, to avoid the possibility of a stack overflow due to nested calls to sendEvent. The route event is processed just like it was sent to the runtime, that is any active expressions seeking that event receive it. The routed event has priority over other events sent to the runtime. In a single-threaded application the routed event is processed before the next event is sent to the runtime through the EPRuntime.sendEvent method.
      Specified by:
      routeEvent in interface EventSender
      Parameters:
      theEvent - to process
      Throws:
      EPException - is thrown when the processing of the event lead to an error