@Contract public interface ImmediateController
Modifier and Type | Interface and Description |
---|---|
static class |
ImmediateController.ImmediateServiceState |
Modifier and Type | Method and Description |
---|---|
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(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
|
Executor getExecutor()
void setExecutor(Executor executor) throws IllegalStateException
executor
- The executor to be used when scheduling work. If null
a default executor implementation will be usedIllegalStateException
- if this is called when the Immediate service
is not in suspended statelong getThreadInactivityTimeout()
void setThreadInactivityTimeout(long timeInMillis) throws IllegalArgumentException
timeInMillis
- The time in milliseconds a thread will wait for new
Immediate service before dyingIllegalArgumentException
- if timeInMillis is less than zeroImmediateController.ImmediateServiceState getImmediateState()
void setImmediateState(ImmediateController.ImmediateServiceState state)
state
- The new state of the ImmediateServiceCopyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.