ExecutorService that implements methods that don't need Context.
| Modifier and Type | Field and Description |
|---|---|
| private final ExecutorService |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | awaitTermination(long
the maximum time to wait timeout, TimeUnit the time unit of the timeout argument unit)Implements java. Blocks until all tasks have completed execution after a shutdown request, or the timeout occurs, or the current thread is interrupted, whichever happens first. |
| pack-priv ExecutorService | |
| public final boolean | isShutdown()
Implements java. Returns |
| public final boolean | isTerminated()
Implements java. Returns |
| public final void | shutdown()
Implements java. Initiates an orderly shutdown in which previously submitted tasks are executed, but no new tasks will be accepted. |
| public final List | shutdownNow()
Implements java. Attempts to stop all actively executing tasks, halts the processing of waiting tasks, and returns a list of the tasks that were awaiting execution. |
| protected static <T> Collection |
| delegate | back to summary |
|---|---|
| private final ExecutorService delegate | |
| ForwardingExecutorService | back to summary |
|---|---|
| protected ForwardingExecutorService(ExecutorService delegate) | |
| awaitTermination | back to summary |
|---|---|
| public final boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException Implements java. Doc from java. Blocks until all tasks have completed execution after a shutdown request, or the timeout occurs, or the current thread is interrupted, whichever happens first.
| |
| delegate | back to summary |
|---|---|
| pack-priv ExecutorService delegate() | |
| isShutdown | back to summary |
|---|---|
| public final boolean isShutdown() Implements java. Doc from java. Returns
| |
| isTerminated | back to summary |
|---|---|
| public final boolean isTerminated() Implements java. Doc from java. Returns
| |
| shutdown | back to summary |
|---|---|
| public final void shutdown() Implements java. Doc from java. Initiates an orderly shutdown in which previously submitted tasks are executed, but no new tasks will be accepted. Invocation has no additional effect if already shut down. This method does not wait for previously submitted tasks to
complete execution. Use
| |
| shutdownNow | back to summary |
|---|---|
| public final List Implements java. Doc from java. Attempts to stop all actively executing tasks, halts the processing of waiting tasks, and returns a list of the tasks that were awaiting execution. This method does not wait for actively executing tasks to
terminate. Use There are no guarantees beyond best-effort attempts to stop
processing actively executing tasks. For example, typical
implementations will cancel via | |
| wrap | back to summary |
|---|---|
| protected static <T> Collection | |