com.espertech.esper.event
Class EventSenderObjectArray

java.lang.Object
  extended by com.espertech.esper.event.EventSenderObjectArray
All Implemented Interfaces:
EventSender

public class EventSenderObjectArray
extends java.lang.Object
implements EventSender

Event sender for map-backed events.

Allows sending only event objects of type map, does not check map contents. Any other event object generates an error.


Constructor Summary
EventSenderObjectArray(EPRuntimeEventSender runtimeEventSender, ObjectArrayEventType objectArrayEventType, EventAdapterService eventAdapterService, ThreadingService threadingService)
          Ctor.
 
Method Summary
 void route(java.lang.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(java.lang.Object theEvent)
          Processes the event object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventSenderObjectArray

public EventSenderObjectArray(EPRuntimeEventSender runtimeEventSender,
                              ObjectArrayEventType objectArrayEventType,
                              EventAdapterService eventAdapterService,
                              ThreadingService threadingService)
Ctor.

Parameters:
runtimeEventSender - for processing events
objectArrayEventType - the event type
threadingService - for inbound threading
eventAdapterService - for event bean creation
Method Detail

sendEvent

public void sendEvent(java.lang.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

route

public void route(java.lang.Object theEvent)
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:
route in interface EventSender
Parameters:
theEvent - to process

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com