public class NamedWindowConsumerLatchFactory extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
enabled |
protected long |
msecWait |
protected String |
name |
protected TimeSourceService |
timeSourceService |
protected boolean |
useSpin |
Constructor and Description |
---|
NamedWindowConsumerLatchFactory(String name,
boolean enabled,
long msecWait,
ConfigurationEngineDefaults.Threading.Locking locking,
TimeSourceService timeSourceService,
boolean initializeNow)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
long |
getMsecWait() |
String |
getName() |
TimeSourceService |
getTimeSourceService() |
NamedWindowConsumerLatch |
newLatch(NamedWindowDeltaData delta,
Map<EPStatementAgentInstanceHandle,List<NamedWindowConsumerView>> consumers)
Returns a new latch.
|
protected final String name
protected final boolean useSpin
protected final TimeSourceService timeSourceService
protected final long msecWait
protected final boolean enabled
public NamedWindowConsumerLatchFactory(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, Map<EPStatementAgentInstanceHandle,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 String getName()
public long getMsecWait()