@Beta public abstract class AbstractListeningExecutorService extends AbstractExecutorService implements ListeningExecutorService
ListeningExecutorService implementation that creates
ListenableFutureTask instances for each Runnable and Callable submitted
to it. These tasks are run with the abstract execute(Runnable) method.
In addition to Executor.execute(java.lang.Runnable), subclasses must implement all methods related to shutdown and
termination.
| Constructor and Description |
|---|
AbstractListeningExecutorService() |
| Modifier and Type | Method and Description |
|---|---|
<T> ListenableFuture<T> |
submit(Callable<T> task) |
ListenableFuture<?> |
submit(Runnable task) |
<T> ListenableFuture<T> |
submit(Runnable task,
T result) |
invokeAll, invokeAll, invokeAny, invokeAnyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinvokeAll, invokeAllawaitTermination, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNowpublic ListenableFuture<?> submit(Runnable task)
submit in interface ListeningExecutorServicesubmit in interface ExecutorServicesubmit in class AbstractExecutorServiceListenableFuture representing pending completion of the taskpublic <T> ListenableFuture<T> submit(Runnable task, @Nullable T result)
submit in interface ListeningExecutorServicesubmit in interface ExecutorServicesubmit in class AbstractExecutorServiceListenableFuture representing pending completion of the taskpublic <T> ListenableFuture<T> submit(Callable<T> task)
submit in interface ListeningExecutorServicesubmit in interface ExecutorServicesubmit in class AbstractExecutorServiceListenableFuture representing pending completion of the taskCopyright © 2010 - 2020 Adobe. All Rights Reserved