Class AbstractListeningExecutorService
java.lang.Object
java.util.concurrent.AbstractExecutorService
org.docx4j.com.google.common.util.concurrent.AbstractListeningExecutorService
- All Implemented Interfaces:
Executor,ExecutorService,ListeningExecutorService
@Beta
@CanIgnoreReturnValue
@GwtIncompatible
public abstract class AbstractListeningExecutorService
extends 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 -
Method Summary
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 interfaceExecutorService- Specified by:
submitin interfaceListeningExecutorService- Overrides:
submitin classAbstractExecutorService- Returns:
- a
ListenableFuturerepresenting pending completion of the task
-
submit
- Specified by:
submitin interfaceExecutorService- Specified by:
submitin interfaceListeningExecutorService- Overrides:
submitin classAbstractExecutorService- Returns:
- a
ListenableFuturerepresenting pending completion of the task
-
submit
- Specified by:
submitin interfaceExecutorService- Specified by:
submitin interfaceListeningExecutorService- Overrides:
submitin classAbstractExecutorService- Returns:
- a
ListenableFuturerepresenting pending completion of the task
-