|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.core.DispatchFuture
public class DispatchFuture
DispatchFuture can be added to a dispatch queue that is thread-local. It represents is a stand-in for a future dispatching of a statement result to statement listeners.
DispatchFuture is aware of future and past dispatches: (newest) DF3 <--> DF2 <--> DF1 (oldest)
Constructor Summary | |
---|---|
DispatchFuture()
Ctor - use for the first future to indicate completion. |
|
DispatchFuture(UpdateDispatchViewBlocking view,
DispatchFuture earlier,
long msecTimeout)
Ctor. |
Method Summary | |
---|---|
void |
execute()
Execute dispatch. |
boolean |
isCompleted()
Returns true if the dispatch completed for this future. |
void |
setLater(DispatchFuture later)
Hand a later future to the dispatch to use for indicating completion via notify. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DispatchFuture(UpdateDispatchViewBlocking view, DispatchFuture earlier, long msecTimeout)
view
- is the blocking dispatch view through which to execute a dispatchearlier
- is the older futuremsecTimeout
- is the timeout period to wait for listeners to complete a prior dispatchpublic DispatchFuture()
Method Detail |
---|
public boolean isCompleted()
public void setLater(DispatchFuture later)
later
- is the later dispatchpublic void execute()
Dispatchable
execute
in interface Dispatchable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |