Class AbstractListeningExecutorService
java.lang.Object
java.util.concurrent.AbstractExecutorService
org.docx4j.com.google.common.util.concurrent.AbstractListeningExecutorService
- All Implemented Interfaces:
java.util.concurrent.Executor,java.util.concurrent.ExecutorService,ListeningExecutorService
@Beta @CanIgnoreReturnValue @GwtIncompatible public abstract class AbstractListeningExecutorService extends java.util.concurrent.AbstractExecutorService implements ListeningExecutorService
Abstract
ListeningExecutorService implementation that creates ListenableFuture
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.
- Since:
- 14.0
- Author:
- Chris Povirk
-
Constructor Summary
Constructors Constructor Description AbstractListeningExecutorService() -
Method Summary
Modifier and Type Method Description ListenableFuture<?>submit(java.lang.Runnable task)<T> ListenableFuture<T>submit(java.lang.Runnable task, @Nullable T result)<T> ListenableFuture<T>submit(java.util.concurrent.Callable<T> task)Methods inherited from class java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskForMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.concurrent.ExecutorService
awaitTermination, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNowMethods inherited from interface org.docx4j.com.google.common.util.concurrent.ListeningExecutorService
invokeAll, invokeAll
-
Constructor Details
-
AbstractListeningExecutorService
public AbstractListeningExecutorService()
-
-
Method Details
-
submit
- Specified by:
submitin interfacejava.util.concurrent.ExecutorService- Specified by:
submitin interfaceListeningExecutorService- Overrides:
submitin classjava.util.concurrent.AbstractExecutorService- Returns:
- a
ListenableFuturerepresenting pending completion of the task
-
submit
- Specified by:
submitin interfacejava.util.concurrent.ExecutorService- Specified by:
submitin interfaceListeningExecutorService- Overrides:
submitin classjava.util.concurrent.AbstractExecutorService- Returns:
- a
ListenableFuturerepresenting pending completion of the task
-
submit
- Specified by:
submitin interfacejava.util.concurrent.ExecutorService- Specified by:
submitin interfaceListeningExecutorService- Overrides:
submitin classjava.util.concurrent.AbstractExecutorService- Returns:
- a
ListenableFuturerepresenting pending completion of the task
-