| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Method and Description |
|---|---|
| public Executor | Returns: The current executor in use by the controller. Will not return null since a default executor is used and returned by this call even if setExecutor is called with nullReturns the executor that is currently in use by the Immediate subsystem |
| public ImmediateController. | Returns: The current state of the ImmediateServiceReturns the state the system is currently running under |
| public long | Returns: The time in milliseconds a thread will wait for new Immediate service before dyingReturns the time in milliseconds a thread will wait for new Immediate services before dying |
| public void | setExecutor(Executor
The executor to be used when scheduling work. If null
a default executor implementation will be used executor)Sets the executor to be used by the Immediate subsystem. |
| public void | setImmediateState(ImmediateController.
The new state of the ImmediateService stateSets the state the system is currently running under |
| public void | setThreadInactivityTimeout(long
The time in milliseconds a thread will wait for new
Immediate service before dying timeInMillis)Sets the time in milliseconds a thread will wait for new Immediate services before dying |
| getExecutor | back to summary |
|---|---|
| public Executor getExecutor() Returns the executor that is currently in use by the Immediate subsystem
| |
| getImmediateState | back to summary |
|---|---|
| public ImmediateController. Returns the state the system is currently running under
| |
| getThreadInactivityTimeout | back to summary |
|---|---|
| public long getThreadInactivityTimeout() Returns the time in milliseconds a thread will wait for new Immediate services before dying
| |
| setExecutor | back to summary |
|---|---|
| public void setExecutor(Executor executor) throws IllegalStateException Sets the executor to be used by the Immediate subsystem. If set to null a default executor will be used. This may only be called when the Immediate service is suspended
| |
| setImmediateState | back to summary |
|---|---|
| public void setImmediateState(ImmediateController. Sets the state the system is currently running under
| |
| setThreadInactivityTimeout | back to summary |
|---|---|
| public void setThreadInactivityTimeout(long timeInMillis) throws IllegalArgumentException Sets the time in milliseconds a thread will wait for new Immediate services before dying
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final ImmediateController. | RUNNING
The system will create new Immediate services as soon as they are found |
| public static final ImmediateController. | SUSPENDED
The system will not create new Immediate services when in SUSPENDED state. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ImmediateController. | |
| public static ImmediateController. |
| RUNNING | back to summary |
|---|---|
| public static final ImmediateController. The system will create new Immediate services as soon as they are found | |
| SUSPENDED | back to summary |
|---|---|
| public static final ImmediateController. The system will not create new Immediate services when in SUSPENDED state. Suspended state does not imply that Immediate services will be shutdown, but rather that any new Immediate services that come along will not be started | |
| ImmediateServiceState | back to summary |
|---|---|
| private ImmediateServiceState() | |
| valueOf | back to summary |
|---|---|
| public static ImmediateController. | |
| values | back to summary |
|---|---|
| public static ImmediateController. | |