|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.epl.named.NamedWindowConsumerLatch
com.espertech.esper.epl.named.NamedWindowConsumerLatchWait
public class NamedWindowConsumerLatchWait
A suspend-and-notify implementation of a latch for use in guaranteeing delivery between a named window delta result and consumable by another statement.
Constructor Summary | |
---|---|
NamedWindowConsumerLatchWait(NamedWindowConsumerLatchFactory factory)
Ctor - use for the first and unused latch to indicate completion. |
|
NamedWindowConsumerLatchWait(NamedWindowDeltaData deltaData,
java.util.Map<EPStatementAgentInstanceHandle,java.util.List<NamedWindowConsumerView>> dispatchTo,
NamedWindowConsumerLatchFactory factory,
NamedWindowConsumerLatchWait earlier)
Ctor. |
Method Summary | |
---|---|
void |
await()
Blcking call that returns only when the earlier latch completed. |
void |
done()
Called to indicate that the latch completed and a later latch can start. |
java.lang.Thread |
getCurrentThread()
|
boolean |
isCompleted()
Returns true if the dispatch completed for this future. |
void |
setLater(NamedWindowConsumerLatchWait later)
Hand a later latch to use for indicating completion via notify. |
Methods inherited from class com.espertech.esper.epl.named.NamedWindowConsumerLatch |
---|
getDeltaData, getDispatchTo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NamedWindowConsumerLatchWait(NamedWindowDeltaData deltaData, java.util.Map<EPStatementAgentInstanceHandle,java.util.List<NamedWindowConsumerView>> dispatchTo, NamedWindowConsumerLatchFactory factory, NamedWindowConsumerLatchWait earlier)
earlier
- the latch before this latch that this latch should be waiting forpublic NamedWindowConsumerLatchWait(NamedWindowConsumerLatchFactory factory)
Method Detail |
---|
public boolean isCompleted()
public void setLater(NamedWindowConsumerLatchWait later)
later
- is the later latchpublic void await()
await
in class NamedWindowConsumerLatch
public java.lang.Thread getCurrentThread()
getCurrentThread
in class NamedWindowConsumerLatch
public void done()
done
in class NamedWindowConsumerLatch
|
© 2006-2016 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 |