public class NamedWindowConsumerLatchFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
enabled |
protected long |
msecWait |
protected java.lang.String |
name |
protected TimeSourceService |
timeSourceService |
protected boolean |
useSpin |
Constructor and Description |
---|
NamedWindowConsumerLatchFactory(java.lang.String name,
boolean enabled,
long msecWait,
ConfigurationEngineDefaults.Threading.Locking locking,
TimeSourceService timeSourceService,
boolean initializeNow)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
long |
getMsecWait() |
java.lang.String |
getName() |
TimeSourceService |
getTimeSourceService() |
NamedWindowConsumerLatch |
newLatch(NamedWindowDeltaData delta,
java.util.Map<EPStatementAgentInstanceHandle,java.util.List<NamedWindowConsumerView>> consumers)
Returns a new latch.
|
protected final java.lang.String name
protected final boolean useSpin
protected final TimeSourceService timeSourceService
protected final long msecWait
protected final boolean enabled
public NamedWindowConsumerLatchFactory(java.lang.String name, boolean enabled, long msecWait, ConfigurationEngineDefaults.Threading.Locking locking, TimeSourceService timeSourceService, boolean initializeNow)
name
- the factory namemsecWait
- the number of milliseconds latches will await maximuallylocking
- the blocking strategy to employtimeSourceService
- time source providerinitializeNow
- for initializingenabled
- for active indicatorpublic NamedWindowConsumerLatch newLatch(NamedWindowDeltaData delta, java.util.Map<EPStatementAgentInstanceHandle,java.util.List<NamedWindowConsumerView>> consumers)
Need not be synchronized as there is one per statement and execution is during statement lock.
delta
- the deltaconsumers
- consumerspublic TimeSourceService getTimeSourceService()
public java.lang.String getName()
public long getMsecWait()