@CanIgnoreReturnValue @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(java.util.concurrent.Callable<T> task) |
ListenableFuture<?> |
submit(java.lang.Runnable task) |
<T> ListenableFuture<T> |
submit(java.lang.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
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(java.util.concurrent.Callable<T> task)
submit
in interface ListeningExecutorService
submit
in interface java.util.concurrent.ExecutorService
submit
in class ForwardingExecutorService
ListenableFuture
representing pending completion of the taskpublic ListenableFuture<?> submit(java.lang.Runnable task)
submit
in interface ListeningExecutorService
submit
in interface java.util.concurrent.ExecutorService
submit
in class ForwardingExecutorService
ListenableFuture
representing pending completion of the taskpublic <T> ListenableFuture<T> submit(java.lang.Runnable task, T result)
submit
in interface ListeningExecutorService
submit
in interface java.util.concurrent.ExecutorService
submit
in class ForwardingExecutorService
ListenableFuture
representing pending completion of the taskCopyright © 2010–2021 JBoss by Red Hat. All rights reserved.