public class EventSenderJsonImpl extends Object implements EventSenderJson
Allows sending only event objects of type string, does not check contents. Any other event object generates an error.
Constructor and Description |
---|
EventSenderJsonImpl(EPRuntimeEventProcessWrapped runtimeEventSender,
JsonEventType eventType,
EventBeanTypedEventFactory eventBeanTypedEventFactory,
ThreadingCommon threadingService)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
Object |
parse(String json) |
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 EventSenderJsonImpl(EPRuntimeEventProcessWrapped runtimeEventSender, JsonEventType eventType, EventBeanTypedEventFactory eventBeanTypedEventFactory, ThreadingCommon threadingService)
runtimeEventSender
- for processing eventseventType
- the event typethreadingService
- for inbound threadingeventBeanTypedEventFactory
- for event bean creationpublic void sendEvent(Object theEvent)
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 processpublic void routeEvent(Object theEvent)
EventSender
routeEvent
in interface EventSender
theEvent
- to processpublic Object parse(String json)
parse
in interface EventSenderJson
json
- to parseCopyright © 2005–2021. All rights reserved.