public interface EventSender
Obtained via the method EPRuntime.getEventSender(String)
the sender is specific to a given
event type and may not process event objects of any other event type; See the method documentatiom for more details.
Obtained via the method EPRuntime.getEventSender(java.net.URI[])
the sender
cooperates with plug-in event representations to reflect upon the event object to determine an appropriate event type
to process the event.
Modifier and Type | Method and Description |
---|---|
void |
route(Object theEvent)
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.
|
void |
sendEvent(Object theEvent)
Processes the event object.
|
void sendEvent(Object theEvent) throws EPException
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.
theEvent
- to processEPException
- if a runtime error occured.void route(Object theEvent) throws EPException
theEvent
- to processEPException
- is thrown when the processing of the event lead to an error