public class EventSenderImpl extends Object implements EventSender
The implementation asks a list of event bean factoryies originating from plug-in event representations to each reflect on the event and generate an event bean. The first one to return an event bean wins.
Constructor and Description |
---|
EventSenderImpl(List<EventSenderURIDesc> handlingFactories,
EPRuntimeEventSender epRuntime,
ThreadingService threadingService)
Ctor.
|
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.
|
public EventSenderImpl(List<EventSenderURIDesc> handlingFactories, EPRuntimeEventSender epRuntime, ThreadingService threadingService)
handlingFactories
- list of factoriesepRuntime
- the runtime to use to process the eventthreadingService
- for inbound threadingpublic void sendEvent(Object theEvent) throws EPException
EventSender
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.
sendEvent
in interface EventSender
theEvent
- to processEPException
- if a runtime error occured.public void route(Object theEvent) throws EPException
EventSender
route
in interface EventSender
theEvent
- to processEPException
- is thrown when the processing of the event lead to an error