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 TypeMethodDescriptionbooleanawaitTermination(long timeout, TimeUnit unit) Deprecated.voidDeprecated.invokeAll(Collection<? extends Callable<T>> tasks) Deprecated.invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) Deprecated.<T> TinvokeAny(Collection<? extends Callable<T>> tasks) Deprecated.<T> TinvokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) Deprecated.booleanDeprecated.booleanDeprecated.voidshutdown()Deprecated.Deprecated.Future<?> Deprecated.<T> Future<T> Deprecated.<T> Future<T> Deprecated.Methods inherited from class com.google.common.collect.ForwardingObject
toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.concurrent.ExecutorService
close
-
Method Details
-
awaitTermination
Deprecated.- Specified by:
awaitTerminationin interfaceExecutorService- Throws:
InterruptedException
-
invokeAll
public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) throws InterruptedException Deprecated.- Specified by:
invokeAllin interfaceExecutorService- Throws:
InterruptedException
-
invokeAll
public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException Deprecated.- Specified by:
invokeAllin interfaceExecutorService- Throws:
InterruptedException
-
invokeAny
public <T> T invokeAny(Collection<? extends Callable<T>> tasks) throws InterruptedException, ExecutionException Deprecated.- Specified by:
invokeAnyin interfaceExecutorService- Throws:
InterruptedExceptionExecutionException
-
invokeAny
public <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException Deprecated.- Specified by:
invokeAnyin interfaceExecutorService- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
isShutdown
public boolean isShutdown()Deprecated.- Specified by:
isShutdownin interfaceExecutorService
-
isTerminated
public boolean isTerminated()Deprecated.- Specified by:
isTerminatedin interfaceExecutorService
-
shutdown
public void shutdown()Deprecated.- Specified by:
shutdownin interfaceExecutorService
-
shutdownNow
Deprecated.- Specified by:
shutdownNowin interfaceExecutorService
-
execute
Deprecated. -
submit
Deprecated.- Specified by:
submitin interfaceExecutorService
-
submit
Deprecated.- Specified by:
submitin interfaceExecutorService
-
submit
Deprecated.- Specified by:
submitin interfaceExecutorService
-