|
||||||||||
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.NamedWindowConsumerLatchSpin
public class NamedWindowConsumerLatchSpin
A spin-locking implementation of a latch for use in guaranteeing delivery between a delta stream produced by a named window and consumable by another statement.
Constructor Summary | |
---|---|
NamedWindowConsumerLatchSpin(NamedWindowConsumerLatchFactory factory)
Ctor - use for the first and unused latch to indicate completion. |
|
NamedWindowConsumerLatchSpin(NamedWindowDeltaData deltaData,
java.util.Map<EPStatementAgentInstanceHandle,java.util.List<NamedWindowConsumerView>> dispatchTo,
NamedWindowConsumerLatchFactory factory,
NamedWindowConsumerLatchSpin earlier)
Ctor. |
Method Summary | |
---|---|
void |
await()
Blocking 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. |
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 NamedWindowConsumerLatchSpin(NamedWindowDeltaData deltaData, java.util.Map<EPStatementAgentInstanceHandle,java.util.List<NamedWindowConsumerView>> dispatchTo, NamedWindowConsumerLatchFactory factory, NamedWindowConsumerLatchSpin earlier)
earlier
- the latch before this latch that this latch should be waiting forpublic NamedWindowConsumerLatchSpin(NamedWindowConsumerLatchFactory factory)
Method Detail |
---|
public boolean isCompleted()
public 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 |