public abstract class ForwardingListeningExecutorService extends ForwardingExecutorServiceimplements 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 |
submit(Callable
|
ListenableFuture |
submit(Runnable
|
<T> ListenableFuture |
submit(Runnable
|
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 ListeningExecutorServicedelegate()
ForwardingObject
ForwardingSet.delegate()
. Concrete subclasses override this method to supply the instance being decorated.
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 task
public ListenableFuture<?> submit(Runnable task)
submit
in interface
ListeningExecutorService
submit
in interface
ExecutorService
submit
in class
ForwardingExecutorService
ListenableFuture
representing pending completion of the task
public <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 task