public static class ConfigurationEngineDefaults.Threading extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ConfigurationEngineDefaults.Threading.Locking
Enumeration of blocking techniques.
|
Constructor and Description |
---|
Threading()
Ctor - sets up defaults.
|
Modifier and Type | Method and Description |
---|---|
ConfigurationEngineDefaults.Threading.Locking |
getInsertIntoDispatchLocking()
Returns the blocking strategy to use when multiple threads deliver results for
a single statement to consuming statements of an insert-into, and the guarantee of order of delivery must be maintained.
|
long |
getInsertIntoDispatchTimeout()
Returns the number of milliseconds that a thread may maximually be blocking
to deliver statement results from a producing statement that employs insert-into
to a consuming statement.
|
long |
getInternalTimerMsecResolution()
Returns the millisecond resolutuion of the internal timer thread.
|
ConfigurationEngineDefaults.Threading.Locking |
getListenerDispatchLocking()
Returns the blocking strategy to use when multiple threads deliver results for
a single statement to listeners, and the guarantee of order of delivery must be maintained.
|
long |
getListenerDispatchTimeout()
Returns the timeout in millisecond to wait for listener code to complete
before dispatching the next result, if dispatch order is preserved
|
ConfigurationEngineDefaults.Threading.Locking |
getNamedWindowConsumerDispatchLocking()
Returns the locking strategy value for named window dispatches to named window consumers (default is spin).
|
long |
getNamedWindowConsumerDispatchTimeout()
Returns the timeout millisecond value for named window dispatches to named window consumers.
|
Integer |
getThreadPoolInboundCapacity()
Returns the capacity of the inbound execution queue, or null if none defined (the unbounded case, default).
|
int |
getThreadPoolInboundNumThreads()
Returns the number of thread in the inbound threading pool.
|
Integer |
getThreadPoolOutboundCapacity()
Returns the capacity of the outbound queue, or null if none defined (the unbounded case, default).
|
int |
getThreadPoolOutboundNumThreads()
Returns the number of thread in the outbound threading pool.
|
Integer |
getThreadPoolRouteExecCapacity()
Returns the capacity of the route execution queue, or null if none defined (the unbounded case, default).
|
int |
getThreadPoolRouteExecNumThreads()
Returns the number of thread in the route execution thread pool.
|
Integer |
getThreadPoolTimerExecCapacity()
Returns the capacity of the timer execution queue, or null if none defined (the unbounded case, default).
|
int |
getThreadPoolTimerExecNumThreads()
Returns the number of thread in the timer execution threading pool.
|
boolean |
isEngineFairlock()
Returns true if the engine-level lock is configured as a fair lock (default is false).
|
boolean |
isInsertIntoDispatchPreserveOrder()
Returns true to indicate preserve order for inter-statement insert-into,
or false to indicate not to preserve order
|
boolean |
isInternalTimerEnabled()
Returns true if internal timer is enabled (the default), or false for internal timer disabled.
|
boolean |
isListenerDispatchPreserveOrder()
Returns true to indicate preserve order for dispatch to listeners,
or false to indicate not to preserve order
|
boolean |
isNamedWindowConsumerDispatchPreserveOrder()
In multithreaded environments, this setting controls whether named window dispatches to named window consumers preserve
the order of events inserted and removed such that statements that consume a named windows delta stream
behave deterministic (true by default).
|
boolean |
isThreadPoolInbound()
Returns true for inbound threading enabled, the default is false for not enabled.
|
boolean |
isThreadPoolOutbound()
Returns true for outbound threading enabled, the default is false for not enabled.
|
boolean |
isThreadPoolRouteExec()
Returns true for route execution threading enabled, the default is false for not enabled.
|
boolean |
isThreadPoolTimerExec()
Returns true for timer execution threading enabled, the default is false for not enabled.
|
void |
setEngineFairlock(boolean engineFairlock)
Set to true to configured the engine-level lock as a fair lock (default is false).
|
void |
setInsertIntoDispatchLocking(ConfigurationEngineDefaults.Threading.Locking insertIntoDispatchLocking)
Sets the blocking strategy to use when multiple threads deliver results for
a single statement to consuming statements of an insert-into, and the guarantee of order of delivery must be maintained.
|
void |
setInsertIntoDispatchPreserveOrder(boolean value)
In multithreaded environments, this setting controls whether insert-into streams preserve
the order of events inserted into them by one or more statements
such that statements that consume other statement's events behave deterministic
|
void |
setInsertIntoDispatchTimeout(long msecTimeout)
Sets the number of milliseconds that a thread may maximually be blocking
to deliver statement results from a producing statement that employs insert-into
to a consuming statement.
|
void |
setInternalTimerEnabled(boolean internalTimerEnabled)
Sets the use of internal timer.
|
void |
setInternalTimerMsecResolution(long internalTimerMsecResolution)
Sets the length of the interval (resolution) of the timer thread.
|
void |
setListenerDispatchLocking(ConfigurationEngineDefaults.Threading.Locking listenerDispatchLocking)
Sets the blocking strategy to use when multiple threads deliver results for
a single statement to listeners, and the guarantee of order of delivery must be maintained.
|
void |
setListenerDispatchPreserveOrder(boolean value)
In multithreaded environments, this setting controls whether dispatches to listeners preserve
the ordering in which the statement processes events.
|
void |
setListenerDispatchTimeout(long value)
In multithreaded environments, this setting controls when dispatches to listeners preserve
the ordering the timeout to complete any outstanding dispatches.
|
void |
setNamedWindowConsumerDispatchLocking(ConfigurationEngineDefaults.Threading.Locking namedWindowConsumerDispatchLocking)
Sets the locking strategy value for named window dispatches to named window consumers (default is spin).
|
void |
setNamedWindowConsumerDispatchPreserveOrder(boolean isNamedWindowConsumerDispatchPreserveOrder)
In multithreaded environments, this setting controls whether named window dispatches to named window consumers preserve
the order of events inserted and removed such that statements that consume a named windows delta stream
behave deterministic (true by default).
|
void |
setNamedWindowConsumerDispatchTimeout(long namedWindowConsumerDispatchTimeout)
Sets the timeout millisecond value for named window dispatches to named window consumers.
|
void |
setThreadPoolInbound(boolean threadPoolInbound)
Set to true for inbound threading enabled, the default is false for not enabled.
|
void |
setThreadPoolInboundCapacity(Integer capacity)
Sets the capacity of the inbound queue, or null if none defined (the unbounded case, default).
|
void |
setThreadPoolInboundNumThreads(int num)
Sets the number of threads in the thread pool for inbound threading.
|
void |
setThreadPoolOutbound(boolean threadPoolOutbound)
Set to true for outbound threading enabled, the default is false for not enabled.
|
void |
setThreadPoolOutboundCapacity(Integer capacity)
Sets the capacity of the outbound queue, or null if none defined (the unbounded case, default).
|
void |
setThreadPoolOutboundNumThreads(int num)
Sets the number of threads in the thread pool for outbound threading.
|
void |
setThreadPoolRouteExec(boolean threadPoolRouteExec)
Set to true for route execution threading enabled, the default is false for not enabled.
|
void |
setThreadPoolRouteExecCapacity(Integer capacity)
Sets the capacity of the route execution queue, or null if none defined (the unbounded case, default).
|
void |
setThreadPoolRouteExecNumThreads(int num)
Sets the number of threads in the thread pool for route exec threading.
|
void |
setThreadPoolTimerExec(boolean threadPoolTimerExec)
Set to true for timer execution threading enabled, the default is false for not enabled.
|
void |
setThreadPoolTimerExecCapacity(Integer capacity)
Sets the capacity of the timer execution queue, or null if none defined (the unbounded case, default).
|
void |
setThreadPoolTimerExecNumThreads(int num)
Sets the number of threads in the thread pool for timer exec threading.
|
public void setListenerDispatchPreserveOrder(boolean value)
value
- is true to preserve ordering, or false if notpublic void setListenerDispatchTimeout(long value)
value
- is the timeout in milliseconds that the engine may spend
waiting for a listener dispatch to complete before dispatching further
results for the same statement to listeners for that statementpublic void setInsertIntoDispatchPreserveOrder(boolean value)
value
- is true to indicate to preserve order, or false to not preserve orderpublic boolean isListenerDispatchPreserveOrder()
public long getListenerDispatchTimeout()
public boolean isInsertIntoDispatchPreserveOrder()
public void setInternalTimerEnabled(boolean internalTimerEnabled)
By setting internal timer to true (the default) the engine starts the internal timer thread and relies on internal timer events to supply the time.
By setting internal timer to false the engine does not start the internal timer thread and relies on external application-supplied timer events to supply the time.
internalTimerEnabled
- is true for internal timer enabled, or false if the application supplies timer eventspublic boolean isInternalTimerEnabled()
public long getInternalTimerMsecResolution()
public void setInternalTimerMsecResolution(long internalTimerMsecResolution)
internalTimerMsecResolution
- is the millisecond interval lengthpublic long getInsertIntoDispatchTimeout()
public void setListenerDispatchLocking(ConfigurationEngineDefaults.Threading.Locking listenerDispatchLocking)
listenerDispatchLocking
- is the blocking techniquepublic void setInsertIntoDispatchTimeout(long msecTimeout)
msecTimeout
- timeout for order-of-delivery blocking between statementspublic void setInsertIntoDispatchLocking(ConfigurationEngineDefaults.Threading.Locking insertIntoDispatchLocking)
insertIntoDispatchLocking
- is the blocking techniquepublic ConfigurationEngineDefaults.Threading.Locking getListenerDispatchLocking()
public ConfigurationEngineDefaults.Threading.Locking getInsertIntoDispatchLocking()
public boolean isThreadPoolInbound()
public void setThreadPoolInbound(boolean threadPoolInbound)
threadPoolInbound
- indicator whether inbound threading is enabledpublic boolean isThreadPoolTimerExec()
public void setThreadPoolTimerExec(boolean threadPoolTimerExec)
threadPoolTimerExec
- indicator whether timer execution threading is enabledpublic boolean isThreadPoolRouteExec()
public void setThreadPoolRouteExec(boolean threadPoolRouteExec)
threadPoolRouteExec
- indicator whether route execution threading is enabledpublic boolean isThreadPoolOutbound()
public void setThreadPoolOutbound(boolean threadPoolOutbound)
threadPoolOutbound
- indicator whether outbound threading is enabledpublic int getThreadPoolInboundNumThreads()
public void setThreadPoolInboundNumThreads(int num)
num
- number of threadspublic int getThreadPoolOutboundNumThreads()
public void setThreadPoolOutboundNumThreads(int num)
num
- number of threadspublic int getThreadPoolRouteExecNumThreads()
public void setThreadPoolRouteExecNumThreads(int num)
num
- number of threadspublic int getThreadPoolTimerExecNumThreads()
public void setThreadPoolTimerExecNumThreads(int num)
num
- number of threadspublic Integer getThreadPoolTimerExecCapacity()
public void setThreadPoolTimerExecCapacity(Integer capacity)
capacity
- capacity or null if none definedpublic Integer getThreadPoolInboundCapacity()
public void setThreadPoolInboundCapacity(Integer capacity)
capacity
- capacity or null if none definedpublic Integer getThreadPoolRouteExecCapacity()
public void setThreadPoolRouteExecCapacity(Integer capacity)
capacity
- capacity or null if none definedpublic Integer getThreadPoolOutboundCapacity()
public void setThreadPoolOutboundCapacity(Integer capacity)
capacity
- capacity or null if none definedpublic boolean isEngineFairlock()
This lock coordinates event processing threads (threads that send events) with threads that perform administrative functions (threads that start or destroy statements, for example).
public void setEngineFairlock(boolean engineFairlock)
This lock coordinates event processing threads (threads that send events) with threads that perform administrative functions (threads that start or destroy statements, for example).
engineFairlock
- true for fair lockpublic boolean isNamedWindowConsumerDispatchPreserveOrder()
public void setNamedWindowConsumerDispatchPreserveOrder(boolean isNamedWindowConsumerDispatchPreserveOrder)
isNamedWindowConsumerDispatchPreserveOrder
- flagpublic long getNamedWindowConsumerDispatchTimeout()
public void setNamedWindowConsumerDispatchTimeout(long namedWindowConsumerDispatchTimeout)
namedWindowConsumerDispatchTimeout
- timeout millisecondspublic ConfigurationEngineDefaults.Threading.Locking getNamedWindowConsumerDispatchLocking()
public void setNamedWindowConsumerDispatchLocking(ConfigurationEngineDefaults.Threading.Locking namedWindowConsumerDispatchLocking)
namedWindowConsumerDispatchLocking
- strategy