|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EPRuntime
Interface to event stream processing runtime services.
Method Summary | |
---|---|
void |
addEmittedListener(EmittedListener listener,
java.lang.String channel)
Register an object that listens for events emitted from the event stream processing runtime on the specified channel. |
void |
clearEmittedListeners()
Deregister all emitted event listeners. |
void |
emit(java.lang.Object object)
Emit an event object to any registered EmittedListener instances listening to the default channel. |
void |
emit(java.lang.Object object,
java.lang.String channel)
Emit an event object to any registered EmittedListener instances on the specified channel. |
int |
getNumEventsEmitted()
Number of events emitted over the lifetime of the event stream processing runtime. |
int |
getNumEventsReceived()
Number of events received over the lifetime of the event stream processing runtime. |
void |
route(java.lang.Object event)
Route the event object back to the event stream processing runtime for internal dispatching. |
void |
sendEvent(java.lang.Object object)
Send an event to the event stream processing runtime. |
Method Detail |
---|
void sendEvent(java.lang.Object object) throws EPException
object
- is the event to sent to the runtime
EPException
- is thrown when the processing of the event lead to an errorint getNumEventsReceived()
int getNumEventsEmitted()
void route(java.lang.Object event)
event
- to route internally for processing by the event stream processing runtimevoid emit(java.lang.Object object)
object
- to be emitted to the default channelvoid emit(java.lang.Object object, java.lang.String channel)
object
- to be emittedchannel
- channel to emit the object to, or null if emitting to the default channelvoid addEmittedListener(EmittedListener listener, java.lang.String channel)
listener
- called when an event is emitted by the runtime.channel
- is the channel to add the listener to, a null value can be used to listen to events emitted
on all channelsvoid clearEmittedListeners()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |