Class NamedWindowConsumerLatchFactory
java.lang.Object
com.espertech.esper.common.internal.epl.namedwindow.consume.NamedWindowConsumerLatchFactory
Class to hold a current latch per named window.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final boolean
protected final long
protected final String
protected final TimeSourceService
protected final boolean
-
Constructor Summary
ConstructorDescriptionNamedWindowConsumerLatchFactory
(String name, boolean enabled, long msecWait, Locking locking, TimeSourceService timeSourceService, boolean initializeNow) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionlong
getName()
newLatch
(NamedWindowDeltaData delta, Map<EPStatementAgentInstanceHandle, List<NamedWindowConsumerView>> consumers) Returns a new latch.
-
Field Details
-
name
-
useSpin
protected final boolean useSpin -
timeSourceService
-
msecWait
protected final long msecWait -
enabled
protected final boolean enabled
-
-
Constructor Details
-
NamedWindowConsumerLatchFactory
public NamedWindowConsumerLatchFactory(String name, boolean enabled, long msecWait, Locking locking, TimeSourceService timeSourceService, boolean initializeNow) Ctor.- Parameters:
name
- the factory namemsecWait
- the number of milliseconds latches will await maximuallylocking
- the blocking strategy to employtimeSourceService
- time source providerinitializeNow
- for initializingenabled
- for active indicator
-
-
Method Details
-
newLatch
public NamedWindowConsumerLatch newLatch(NamedWindowDeltaData delta, Map<EPStatementAgentInstanceHandle, List<NamedWindowConsumerView>> consumers) Returns a new latch.Need not be synchronized as there is one per statement and execution is during statement lock.
- Parameters:
delta
- the deltaconsumers
- consumers- Returns:
- latch
-
getTimeSourceService
-
getName
-
getMsecWait
public long getMsecWait()
-