public abstract class ForwardingListeningExecutorService extends ForwardingExecutorService implements ListeningExecutorService
A listening executor service which forwards all its method calls to another listening executor service. Subclasses should override one or more methods to modify the behavior of the backing executor service as desired per the decorator pattern.
| Modifier | Constructor and Description |
|---|---|
protected |
ForwardingListeningExecutorService()
Constructor for use by subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract ListeningExecutorService |
delegate() |
<T> ListenableFuture<T> |
submit(Callable<T> task) |
ListenableFuture<?> |
submit(Runnable task) |
<T> ListenableFuture<T> |
submit(Runnable task,
T result) |
awaitTermination, execute, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNowtoStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitinvokeAll, invokeAllawaitTermination, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNowprotected ForwardingListeningExecutorService()
Constructor for use by subclasses.
protected abstract ListeningExecutorService delegate()
delegate in class ForwardingExecutorServicepublic <T> ListenableFuture<T> submit(Callable<T> task)
submit in interface ListeningExecutorServicesubmit in interface ExecutorServicesubmit in class ForwardingExecutorServiceListenableFuture representing pending completion of the taskpublic ListenableFuture<?> submit(Runnable task)
submit in interface ListeningExecutorServicesubmit in interface ExecutorServicesubmit in class ForwardingExecutorServiceListenableFuture representing pending completion of the taskpublic <T> ListenableFuture<T> submit(Runnable task, T result)
submit in interface ListeningExecutorServicesubmit in interface ExecutorServicesubmit in class ForwardingExecutorServiceListenableFuture representing pending completion of the task