|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.emit.EmitServiceImpl
public final class EmitServiceImpl
Implementation of the event emit service.
Constructor Summary | |
---|---|
protected |
EmitServiceImpl()
Constructor. |
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. |
int |
getNumEventsEmitted()
Number of events emitted. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected EmitServiceImpl()
Method Detail |
---|
public final void addListener(EmittedListener listener, String channel)
EmitService
addListener
in interface EmitService
listener
- is the callback to receive when events are emittedchannel
- is the channel to listen to, with null values allowed to indicate the default channelpublic final void clearListeners()
EmitService
clearListeners
in interface EmitService
public final void emitEvent(Object object, String channel)
EmitService
emitEvent
in interface EmitService
object
- is the event to emitchannel
- is the channel to emit topublic final int getNumEventsEmitted()
EmitService
getNumEventsEmitted
in interface EmitService
|
© 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 |