Class ForwardingExecutorService
java.lang.Object
com.google.common.collect.ForwardingObject
com.google.common.util.concurrent.ForwardingExecutorService
- All Implemented Interfaces:
AutoCloseable
,Executor
,ExecutorService
- Direct Known Subclasses:
ForwardingListeningExecutorService
@Deprecated(since="2022-12-01")
public abstract class ForwardingExecutorService
extends ForwardingObject
implements ExecutorService
Deprecated.
The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023
An executor service which forwards all its method calls to another executor
service. Subclasses should override one or more methods to modify the
behavior of the backing executor service as desired per the decorator pattern.
- Since:
- 10.0
-
Method Summary
Modifier and TypeMethodDescriptionboolean
awaitTermination
(long timeout, TimeUnit unit) Deprecated.void
Deprecated.invokeAll
(Collection<? extends Callable<T>> tasks) Deprecated.invokeAll
(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) Deprecated.<T> T
invokeAny
(Collection<? extends Callable<T>> tasks) Deprecated.<T> T
invokeAny
(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) Deprecated.boolean
Deprecated.boolean
Deprecated.void
shutdown()
Deprecated.Deprecated.Future
<?> Deprecated.<T> Future
<T> Deprecated.<T> Future
<T> Deprecated.Methods inherited from class com.google.common.collect.ForwardingObject
toString
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.concurrent.ExecutorService
close
-
Method Details
-
awaitTermination
Deprecated.- Specified by:
awaitTermination
in interfaceExecutorService
- Throws:
InterruptedException
-
invokeAll
public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) throws InterruptedException Deprecated.- Specified by:
invokeAll
in interfaceExecutorService
- Throws:
InterruptedException
-
invokeAll
public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException Deprecated.- Specified by:
invokeAll
in interfaceExecutorService
- Throws:
InterruptedException
-
invokeAny
public <T> T invokeAny(Collection<? extends Callable<T>> tasks) throws InterruptedException, ExecutionException Deprecated.- Specified by:
invokeAny
in interfaceExecutorService
- Throws:
InterruptedException
ExecutionException
-
invokeAny
public <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException Deprecated.- Specified by:
invokeAny
in interfaceExecutorService
- Throws:
InterruptedException
ExecutionException
TimeoutException
-
isShutdown
public boolean isShutdown()Deprecated.- Specified by:
isShutdown
in interfaceExecutorService
-
isTerminated
public boolean isTerminated()Deprecated.- Specified by:
isTerminated
in interfaceExecutorService
-
shutdown
public void shutdown()Deprecated.- Specified by:
shutdown
in interfaceExecutorService
-
shutdownNow
Deprecated.- Specified by:
shutdownNow
in interfaceExecutorService
-
execute
Deprecated. -
submit
Deprecated.- Specified by:
submit
in interfaceExecutorService
-
submit
Deprecated.- Specified by:
submit
in interfaceExecutorService
-
submit
Deprecated.- Specified by:
submit
in interfaceExecutorService
-