ExecutorService that delegates to the real executor, while disallowing termination.
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | awaitTermination(final long
the maximum time to wait timeout, final TimeUnit the time unit of the timeout argument unit)Implements java. |
| public void | execute(final Runnable
the runnable task command)Implements java. |
| public boolean | isShutdown()
Implements java. true if this executor has been shut down.
|
| public boolean | isTerminated()
Implements java. true if all tasks have completed following shut down.
|
| public void | shutdown()
Implements java. |
| public List | shutdownNow()
Implements java. |
| public String |
| delegate | back to summary |
|---|---|
| private final Executor delegate | |
| DelegatingExecutorService | back to summary |
|---|---|
| pack-priv DelegatingExecutorService(final Executor delegate) | |
| awaitTermination | back to summary |
|---|---|
| public boolean awaitTermination(final long timeout, final 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.
| |
| execute | back to summary |
|---|---|
| public void execute(final Runnable command) Implements java. Doc from java. Executes the given command at some time in the future. The command
may execute in a new thread, in a pooled thread, or in the calling
thread, at the discretion of the
| |
| isShutdown | back to summary |
|---|---|
| public boolean isShutdown() Implements java. Doc from java. Returns
| |
| isTerminated | back to summary |
|---|---|
| public boolean isTerminated() Implements java. Doc from java. Returns
| |
| shutdown | back to summary |
|---|---|
| public 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 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 | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |