|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EmitService
The emit service is a simple publish-subscribe mechanism for sending events out of the runtime to emitted event listeners that registered interest in the same or default channel that an event was emitted to.
Method Summary | |
---|---|
void |
addListener(EmittedListener listener,
String channel)
Add emitted event listener for the specified channel, or the default channel if the channel value is null. |
void |
clearListeners()
Removes all listeners for emitted events. |
void |
emitEvent(Object object,
String channel)
Emit an event to the specified channel. |
long |
getNumEventsEmitted()
Number of events emitted. |
void |
resetStats()
Resets the number of events emitted |
Method Detail |
---|
void emitEvent(Object object, String channel)
object
- is the event to emitchannel
- is the channel to emit tovoid addListener(EmittedListener listener, String channel)
listener
- is the callback to receive when events are emittedchannel
- is the channel to listen to, with null values allowed to indicate the default channelvoid clearListeners()
long getNumEventsEmitted()
void resetStats()
|
© 2007 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |