@GwtIncompatible public abstract class ForwardingListeningExecutorService extends ForwardingExecutorService implements ListeningExecutorService
Modifier | Constructor and Description |
---|---|
protected |
ForwardingListeningExecutorService()
Constructor for use by subclasses.
|
Modifier and Type | Method and Description |
---|---|
protected abstract ListeningExecutorService |
delegate()
Returns the backing delegate instance that methods are forwarded to.
|
<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, shutdownNow
toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
invokeAll, invokeAll
awaitTermination, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow
protected ForwardingListeningExecutorService()
protected abstract ListeningExecutorService delegate()
ForwardingObject
ForwardingSet.delegate()
. Concrete subclasses override this method to supply
the instance being decorated.delegate
in class ForwardingExecutorService
public <T> ListenableFuture<T> submit(Callable<T> task)
submit
in interface ListeningExecutorService
submit
in interface ExecutorService
submit
in class ForwardingExecutorService
ListenableFuture
representing pending completion of the taskpublic ListenableFuture<?> submit(Runnable task)
submit
in interface ListeningExecutorService
submit
in interface ExecutorService
submit
in class ForwardingExecutorService
ListenableFuture
representing pending completion of the taskpublic <T> ListenableFuture<T> submit(Runnable task, T result)
submit
in interface ListeningExecutorService
submit
in interface ExecutorService
submit
in class ForwardingExecutorService
ListenableFuture
representing pending completion of the taskCopyright © 2010–2017. All rights reserved.