Class NamedWindowConsumerLatchWait
java.lang.Object
com.espertech.esper.common.internal.epl.namedwindow.consume.NamedWindowConsumerLatch
com.espertech.esper.common.internal.epl.namedwindow.consume.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
ConstructorDescriptionNamedWindowConsumerLatchWait
(NamedWindowDeltaData deltaData, Map<EPStatementAgentInstanceHandle, List<NamedWindowConsumerView>> dispatchTo, NamedWindowConsumerLatchFactory factory, NamedWindowConsumerLatchWait earlier) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.boolean
Returns true if the dispatch completed for this future.void
Hand a later latch to use for indicating completion via notify.Methods inherited from class com.espertech.esper.common.internal.epl.namedwindow.consume.NamedWindowConsumerLatch
getDeltaData, getDispatchTo
-
Constructor Details
-
NamedWindowConsumerLatchWait
public NamedWindowConsumerLatchWait(NamedWindowDeltaData deltaData, Map<EPStatementAgentInstanceHandle, List<NamedWindowConsumerView>> dispatchTo, NamedWindowConsumerLatchFactory factory, NamedWindowConsumerLatchWait earlier) -
NamedWindowConsumerLatchWait
-
-
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
-
setLater
Hand a later latch to use for indicating completion via notify.- Parameters:
later
- is the later latch
-
await
public void await()Blcking 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
-