Class NamedWindowConsumerLatchSpin
java.lang.Object
com.espertech.esper.common.internal.epl.namedwindow.consume.NamedWindowConsumerLatch
com.espertech.esper.common.internal.epl.namedwindow.consume.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
ConstructorDescriptionNamedWindowConsumerLatchSpin
(NamedWindowDeltaData deltaData, Map<EPStatementAgentInstanceHandle, List<NamedWindowConsumerView>> dispatchTo, NamedWindowConsumerLatchFactory factory, NamedWindowConsumerLatchSpin earlier) -
Method Summary
Methods inherited from class com.espertech.esper.common.internal.epl.namedwindow.consume.NamedWindowConsumerLatch
getDeltaData, getDispatchTo
-
Constructor Details
-
NamedWindowConsumerLatchSpin
public NamedWindowConsumerLatchSpin(NamedWindowDeltaData deltaData, Map<EPStatementAgentInstanceHandle, List<NamedWindowConsumerView>> dispatchTo, NamedWindowConsumerLatchFactory factory, NamedWindowConsumerLatchSpin earlier) -
NamedWindowConsumerLatchSpin
-
-
Method Details
-
getEarlier
- Specified by:
getEarlier
in classNamedWindowConsumerLatch
-
isCompleted
public boolean isCompleted()Returns true if the dispatch completed for this future.- Returns:
- true for completed, false if not
-
await
public void await()Blocking call that returns only when the earlier latch completed.- Specified by:
await
in classNamedWindowConsumerLatch
-
done
public void done()Called to indicate that the latch completed and a later latch can start.- Specified by:
done
in classNamedWindowConsumerLatch
-