com.espertech.esper.epl.named
Class NamedWindowConsumerLatchFactory
java.lang.Object
com.espertech.esper.epl.named.NamedWindowConsumerLatchFactory
public class NamedWindowConsumerLatchFactory
- extends java.lang.Object
Class to hold a current latch per named window.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
protected final java.lang.String name
useSpin
protected final boolean useSpin
timeSourceService
protected final TimeSourceService timeSourceService
msecWait
protected final long msecWait
enabled
protected final boolean enabled
NamedWindowConsumerLatchFactory
public NamedWindowConsumerLatchFactory(java.lang.String name,
boolean enabled,
long msecWait,
ConfigurationEngineDefaults.Threading.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 provider
newLatch
public NamedWindowConsumerLatch newLatch(NamedWindowDeltaData delta,
java.util.Map<EPStatementAgentInstanceHandle,java.util.List<NamedWindowConsumerView>> consumers)
- Returns a new latch.
Need not be synchronized as there is one per statement and execution is during statement lock.
- Returns:
- latch
getTimeSourceService
public TimeSourceService getTimeSourceService()
getName
public java.lang.String getName()
getMsecWait
public long getMsecWait()