public class EventSenderXMLDOM extends Object implements EventSender
Allows sending only event objects of type Node or Document, does check the root name of the XML document which must match the event type root name as configured. Any other event object generates an error.
Constructor and Description |
---|
EventSenderXMLDOM(EPRuntimeEventProcessWrapped runtimeEventSender,
BaseXMLEventType baseXMLEventType,
EventBeanTypedEventFactory eventBeanTypedEventFactory,
ThreadingCommon threadingService)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
routeEvent(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 EventSenderXMLDOM(EPRuntimeEventProcessWrapped runtimeEventSender, BaseXMLEventType baseXMLEventType, EventBeanTypedEventFactory eventBeanTypedEventFactory, ThreadingCommon threadingService)
runtimeEventSender
- for processing eventsbaseXMLEventType
- the event typethreadingService
- for inbound threadingeventBeanTypedEventFactory
- for event bean creationpublic 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 routeEvent(Object theEvent) throws EPException
EventSender
routeEvent
in interface EventSender
theEvent
- to processEPException
- is thrown when the processing of the event lead to an errorCopyright © 2005–2018. All rights reserved.