public interface EPEventServiceSendEvent
Use any of the route-event methods of EPEventServiceRouteEvent
when listeners, subscribers or extension code
process events.
Modifier and Type | Method and Description |
---|---|
void |
sendEventAvro(Object avroGenericDataDotRecord,
String avroEventTypeName)
Send an event represented by a Avro GenericData.Record to the runtime.
|
void |
sendEventBean(Object event,
String eventTypeName)
Send an event represented by an object to the runtime.
|
void |
sendEventMap(Map<String,Object> event,
String eventTypeName)
Send a map containing event property values to the runtime.
|
void |
sendEventObjectArray(Object[] event,
String eventTypeName)
Send an object array containing event property values to the runtime.
|
void |
sendEventXMLDOM(Node node,
String eventTypeName)
Send an event represented by a DOM node to the runtime.
|
void sendEventObjectArray(Object[] event, String eventTypeName)
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
(except with the outbound-threading configuration), see EPEventServiceRouteEvent.routeEventObjectArray(Object[], String)
.
event
- - array that contains event property values. Your application must ensure that property values
match the exact same order that the property names and types have been declared, and that the array length matches the number of properties declared.eventTypeName
- - event type namecom.espertech.esper.common.client.EPException
- - when the processing of the event leads to an errorvoid sendEventBean(Object event, String eventTypeName)
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
(except with the outbound-threading configuration), see EPEventServiceRouteEvent.routeEventBean(Object, String)
.
event
- is the event to sent to the runtimeeventTypeName
- event type namecom.espertech.esper.common.client.EPException
- is thrown when the processing of the event lead to an errorvoid sendEventMap(Map<String,Object> event, String eventTypeName)
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
(except with the outbound-threading configuration), see EPEventServiceRouteEvent.routeEventMap(java.util.Map, String)
).
event
- - map that contains event property values. Keys are expected to be of type String while values
can be of any type. Keys and values should match those declared via Configuration for the given eventTypeName.eventTypeName
- - event type namecom.espertech.esper.common.client.EPException
- - when the processing of the event leads to an errorvoid sendEventXMLDOM(Node node, String eventTypeName)
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
(except with the outbound-threading configuration), see EPEventServiceRouteEvent.routeEventXMLDOM(Node, String)
.
node
- is the DOM node as an eventeventTypeName
- event type namecom.espertech.esper.common.client.EPException
- is thrown when the processing of the event lead to an errorvoid sendEventAvro(Object avroGenericDataDotRecord, String avroEventTypeName)
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
(except with the outbound-threading configuration), see EPEventServiceRouteEvent.routeEventAvro(Object, String)
}).
avroGenericDataDotRecord
- is the event to sent to the runtimeavroEventTypeName
- event type namecom.espertech.esper.common.client.EPException
- is thrown when the processing of the event lead to an errorCopyright © 2005–2018. All rights reserved.