public abstract class ForwardingExecutorService extends ForwardingObjectimplements ExecutorService
| Modifier | Constructor and Description |
|---|---|
protected |
ForwardingExecutorService()
Constructor for use by subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long timeout, TimeUnit
|
protected abstract ExecutorService |
delegate()
Returns the backing delegate instance that methods are forwarded to.
|
void |
execute(Runnable
|
<T> List |
invokeAll(Collection
|
<T> List |
invokeAll(Collection
|
<T> T |
invokeAny(Collection
|
<T> T |
invokeAny(Collection
|
boolean |
isShutdown()
|
boolean |
isTerminated()
|
void |
shutdown()
|
List |
shutdownNow()
|
<T> Future |
submit(Callable
|
Future |
submit(Runnable
|
<T> Future |
submit(Runnable
|
toStringprotected ForwardingExecutorService()
protected abstract ExecutorServicedelegate()
ForwardingObject
ForwardingSet.delegate() . Concrete subclasses override this method to supply the instance being decorated.
public boolean awaitTermination(long timeout,
TimeUnit unit)
throws InterruptedException
awaitTermination in interface
ExecutorService
InterruptedException
public <T> List<Future <T>> invokeAll(Collection <? extends Callable <T>> tasks) throws InterruptedException
invokeAll in interface
ExecutorService
InterruptedException
public <T> List<Future <T>> invokeAll(Collection <? extends Callable <T>> tasks, long timeout, TimeUnit unit) throws InterruptedException
invokeAll in interface
ExecutorService
InterruptedException
public <T> T invokeAny(Collection<? extends Callable <T>> tasks) throws InterruptedException , ExecutionException
invokeAny in interface
ExecutorService
InterruptedException
ExecutionException
public <T> T invokeAny(Collection<? extends Callable <T>> tasks, long timeout, TimeUnit unit) throws InterruptedException , ExecutionException , TimeoutException
invokeAny in interface
ExecutorService
InterruptedException
ExecutionException
TimeoutException
public boolean isShutdown()
public boolean isTerminated()
public void shutdown()
public void execute(Runnablecommand)