Class AbstractListeningExecutorService
- java.lang.Object
-
- java.util.concurrent.AbstractExecutorService
-
- com.google.common.util.concurrent.AbstractListeningExecutorService
-
- All Implemented Interfaces:
ListeningExecutorService
,java.util.concurrent.Executor
,java.util.concurrent.ExecutorService
@Beta @Deprecated(since="2022-12-01") public abstract class AbstractListeningExecutorService extends java.util.concurrent.AbstractExecutorService implements ListeningExecutorService
Deprecated.The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023AbstractListeningExecutorService
implementation that createsListenableFutureTask
instances for eachRunnable
andCallable
submitted to it. These tasks are run with the abstractexecute(Runnable)
method.In addition to
Executor.execute(java.lang.Runnable)
, subclasses must implement all methods related to shutdown and termination.- Since:
- 14.0
-
-
Constructor Summary
Constructors Constructor Description AbstractListeningExecutorService()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ListenableFuture<?>
submit(java.lang.Runnable task)
Deprecated.<T> ListenableFuture<T>
submit(java.lang.Runnable task, T result)
Deprecated.<T> ListenableFuture<T>
submit(java.util.concurrent.Callable<T> task)
Deprecated.-
Methods inherited from class java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.concurrent.ExecutorService
awaitTermination, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow
-
Methods inherited from interface com.google.common.util.concurrent.ListeningExecutorService
invokeAll, invokeAll
-
-
-
-
Method Detail
-
submit
public ListenableFuture<?> submit(java.lang.Runnable task)
Deprecated.- Specified by:
submit
in interfacejava.util.concurrent.ExecutorService
- Specified by:
submit
in interfaceListeningExecutorService
- Overrides:
submit
in classjava.util.concurrent.AbstractExecutorService
- Returns:
- a
ListenableFuture
representing pending completion of the task
-
submit
public <T> ListenableFuture<T> submit(java.lang.Runnable task, @Nullable T result)
Deprecated.- Specified by:
submit
in interfacejava.util.concurrent.ExecutorService
- Specified by:
submit
in interfaceListeningExecutorService
- Overrides:
submit
in classjava.util.concurrent.AbstractExecutorService
- Returns:
- a
ListenableFuture
representing pending completion of the task
-
submit
public <T> ListenableFuture<T> submit(java.util.concurrent.Callable<T> task)
Deprecated.- Specified by:
submit
in interfacejava.util.concurrent.ExecutorService
- Specified by:
submit
in interfaceListeningExecutorService
- Overrides:
submit
in classjava.util.concurrent.AbstractExecutorService
- Returns:
- a
ListenableFuture
representing pending completion of the task
-
-