@Contract public interface ImmediateController
| Modifier and Type | Interface and Description |
|---|---|
static class |
ImmediateController.ImmediateServiceState |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.Executor |
getExecutor()
Returns the executor that is currently in use by the Immediate subsystem
|
ImmediateController.ImmediateServiceState |
getImmediateState()
Returns the state the system is currently running under
|
long |
getThreadInactivityTimeout()
Returns the time in milliseconds a thread will wait for new Immediate
services before dying
|
void |
setExecutor(java.util.concurrent.Executor executor)
Sets the executor to be used by the Immediate subsystem.
|
void |
setImmediateState(ImmediateController.ImmediateServiceState state)
Sets the state the system is currently running under
|
void |
setThreadInactivityTimeout(long timeInMillis)
Sets the time in milliseconds a thread will wait for new Immediate
services before dying
|
java.util.concurrent.Executor getExecutor()
void setExecutor(java.util.concurrent.Executor executor)
throws java.lang.IllegalStateException
executor - The executor to be used when scheduling work. If null
a default executor implementation will be usedjava.lang.IllegalStateException - if this is called when the Immediate service
is not in suspended statelong getThreadInactivityTimeout()
void setThreadInactivityTimeout(long timeInMillis)
throws java.lang.IllegalArgumentException
timeInMillis - The time in milliseconds a thread will wait for new
Immediate service before dyingjava.lang.IllegalArgumentException - if timeInMillis is less than zeroImmediateController.ImmediateServiceState getImmediateState()
void setImmediateState(ImmediateController.ImmediateServiceState state)
state - The new state of the ImmediateService