net.esper.core
Class EPStatementSupport

java.lang.Object
  extended by net.esper.core.EPStatementSupport
All Implemented Interfaces:
EPListenable
Direct Known Subclasses:
EPEQLStatementImpl, EPPatternStatementImpl

public abstract class EPStatementSupport
extends Object
implements EPListenable

Base class for an EPStatement - provides listener registration functions.


Constructor Summary
EPStatementSupport()
           
 
Method Summary
 void addListener(UpdateListener listener)
          Add a listener to the statement.
protected  Set<UpdateListener> getListeners()
          Returns the set of listeners to the statement.
 void removeAllListeners()
          Remove all listeners to a statement.
 void removeListener(UpdateListener listener)
          Remove a listeners to a statement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EPStatementSupport

public EPStatementSupport()
Method Detail

getListeners

protected Set<UpdateListener> getListeners()
Returns the set of listeners to the statement.

Returns:
statement listeners

addListener

public void addListener(UpdateListener listener)
Add a listener to the statement.

Specified by:
addListener in interface EPListenable
Parameters:
listener - to add

removeListener

public void removeListener(UpdateListener listener)
Remove a listeners to a statement.

Specified by:
removeListener in interface EPListenable
Parameters:
listener - to remove

removeAllListeners

public void removeAllListeners()
Remove all listeners to a statement.

Specified by:
removeAllListeners in interface EPListenable