public interface EventBusCollector
Modifier and Type | Method and Description |
---|---|
void |
sendEvent(Map map,
String eventTypeName)
Send a map containing event property values to the event stream processing runtime.
|
void |
sendEvent(Node node)
Send an event represented by a DOM node to the event stream processing runtime.
|
void |
sendEvent(Object object)
Send an event represented by a plain Java object to the event stream processing runtime.
|
void |
sendEvent(Object[] objectArray,
String eventTypeName)
Send an object array containing event property values as array elements to the event stream processing runtime.
|
void sendEvent(Object object) throws EPException
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.
object
- is the event to sent to the runtimeEPException
- is thrown when the processing of the event lead to an errorvoid sendEvent(Map map, String eventTypeName) throws EPException
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.
map
- - 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
- - the name for the Map event type that was previously configuredEPException
- - when the processing of the event leads to an errorvoid sendEvent(Object[] objectArray, String eventTypeName) throws EPException
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.
objectArray
- - object 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
- - the name for the Object-array event type that was previously configuredEPException
- - when the processing of the event leads to an errorvoid sendEvent(Node node) throws EPException
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.
node
- is the DOM node as an eventEPException
- is thrown when the processing of the event lead to an error