Class PromisingExecutorService
- java.lang.Object
-
- com.atlassian.confluence.rest.client.PromisingExecutorService
-
- All Implemented Interfaces:
Executor,ExecutorService
@Deprecated public class PromisingExecutorService extends Object implements ExecutorService
Deprecated.since 7.0.1. Use a regularExecutorinstead.An executor service that returns Promises rather than Futures.
-
-
Constructor Summary
Constructors Constructor Description PromisingExecutorService(com.google.common.util.concurrent.ListeningExecutorService service)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanawaitTermination(long timeout, TimeUnit unit)Deprecated.voidexecute(Runnable command)Deprecated.<T> List<Future<T>>invokeAll(Collection<? extends Callable<T>> tasks)Deprecated.<T> List<Future<T>>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.booleanisShutdown()Deprecated.booleanisTerminated()Deprecated.voidshutdown()Deprecated.List<Runnable>shutdownNow()Deprecated.com.atlassian.util.concurrent.Promise<?>submit(Runnable task)Deprecated.<T> com.atlassian.util.concurrent.Promise<T>submit(Runnable task, @Nullable T result)Deprecated.<T> com.atlassian.util.concurrent.Promise<T>submit(Callable<T> task)Deprecated.
-
-
-
Method Detail
-
shutdown
public void shutdown()
Deprecated.- Specified by:
shutdownin interfaceExecutorService
-
shutdownNow
public List<Runnable> shutdownNow()
Deprecated.- Specified by:
shutdownNowin interfaceExecutorService
-
isShutdown
public boolean isShutdown()
Deprecated.- Specified by:
isShutdownin interfaceExecutorService
-
isTerminated
public boolean isTerminated()
Deprecated.- Specified by:
isTerminatedin interfaceExecutorService
-
awaitTermination
public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedExceptionDeprecated.- Specified by:
awaitTerminationin interfaceExecutorService- Throws:
InterruptedException
-
submit
public <T> com.atlassian.util.concurrent.Promise<T> submit(Callable<T> task)
Deprecated.- Specified by:
submitin interfaceExecutorService
-
submit
public <T> com.atlassian.util.concurrent.Promise<T> submit(Runnable task, @Nullable T result)
Deprecated.- Specified by:
submitin interfaceExecutorService
-
submit
public com.atlassian.util.concurrent.Promise<?> submit(Runnable task)
Deprecated.- Specified by:
submitin interfaceExecutorService
-
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
-
-