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 regularExecutor
instead.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 Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
awaitTermination(long timeout, TimeUnit unit)
Deprecated.void
execute(Runnable command)
Deprecated.static <T> com.atlassian.util.concurrent.Promise<T>
forFuture(Future<T> input, com.google.common.util.concurrent.ListeningExecutorService delegate)
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> T
invokeAny(Collection<? extends Callable<T>> tasks)
Deprecated.<T> T
invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit)
Deprecated.boolean
isShutdown()
Deprecated.boolean
isTerminated()
Deprecated.void
shutdown()
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:
shutdown
in interfaceExecutorService
-
shutdownNow
public List<Runnable> shutdownNow()
Deprecated.- Specified by:
shutdownNow
in interfaceExecutorService
-
isShutdown
public boolean isShutdown()
Deprecated.- Specified by:
isShutdown
in interfaceExecutorService
-
isTerminated
public boolean isTerminated()
Deprecated.- Specified by:
isTerminated
in interfaceExecutorService
-
awaitTermination
public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException
Deprecated.- Specified by:
awaitTermination
in interfaceExecutorService
- Throws:
InterruptedException
-
submit
public <T> com.atlassian.util.concurrent.Promise<T> submit(Callable<T> task)
Deprecated.- Specified by:
submit
in interfaceExecutorService
-
submit
public <T> com.atlassian.util.concurrent.Promise<T> submit(Runnable task, @Nullable T result)
Deprecated.- Specified by:
submit
in interfaceExecutorService
-
submit
public com.atlassian.util.concurrent.Promise<?> submit(Runnable task)
Deprecated.- Specified by:
submit
in interfaceExecutorService
-
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
-
execute
public void execute(Runnable command)
Deprecated.
-
forFuture
public static <T> com.atlassian.util.concurrent.Promise<T> forFuture(Future<T> input, com.google.common.util.concurrent.ListeningExecutorService delegate)
Deprecated.
-
-