net.esper.core
Class PatternListenerDispatch

java.lang.Object
  extended by net.esper.core.PatternListenerDispatch
All Implemented Interfaces:
Dispatchable

public class PatternListenerDispatch
extends Object
implements Dispatchable

Dispatchable for dispatching events to update listeners.


Constructor Summary
PatternListenerDispatch(Set<UpdateListener> listeners)
          Constructor.
 
Method Summary
 void add(EventBean event)
          Add an event to be dispatched.
 void execute()
          Execute dispatch.
 boolean hasData()
          Returns true if at least one event has been added.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternListenerDispatch

public PatternListenerDispatch(Set<UpdateListener> listeners)
Constructor.

Parameters:
listeners - is the listeners to dispatch to.
Method Detail

add

public void add(EventBean event)
Add an event to be dispatched.

Parameters:
event - to add

execute

public void execute()
Description copied from interface: Dispatchable
Execute dispatch.

Specified by:
execute in interface Dispatchable

hasData

public boolean hasData()
Returns true if at least one event has been added.

Returns:
true if it has data, false if not

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com