Executor instead.@Deprecated public class PromisingExecutorService extends Object implements ExecutorService
| Constructor and Description |
|---|
PromisingExecutorService(com.google.common.util.concurrent.ListeningExecutorService service)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long timeout,
TimeUnit unit)
Deprecated.
|
void |
execute(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> 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.
|
<T> com.atlassian.util.concurrent.Promise<T> |
submit(Callable<T> task)
Deprecated.
|
com.atlassian.util.concurrent.Promise<?> |
submit(Runnable task)
Deprecated.
|
<T> com.atlassian.util.concurrent.Promise<T> |
submit(Runnable task,
T result)
Deprecated.
|
public PromisingExecutorService(com.google.common.util.concurrent.ListeningExecutorService service)
public void shutdown()
shutdown in interface ExecutorServicepublic List<Runnable> shutdownNow()
shutdownNow in interface ExecutorServicepublic boolean isShutdown()
isShutdown in interface ExecutorServicepublic boolean isTerminated()
isTerminated in interface ExecutorServicepublic boolean awaitTermination(long timeout,
TimeUnit unit)
throws InterruptedException
awaitTermination in interface ExecutorServiceInterruptedExceptionpublic <T> com.atlassian.util.concurrent.Promise<T> submit(Callable<T> task)
submit in interface ExecutorServicepublic <T> com.atlassian.util.concurrent.Promise<T> submit(Runnable task, T result)
submit in interface ExecutorServicepublic com.atlassian.util.concurrent.Promise<?> submit(Runnable task)
submit in interface ExecutorServicepublic <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) throws InterruptedException
invokeAll in interface ExecutorServiceInterruptedExceptionpublic <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException
invokeAll in interface ExecutorServiceInterruptedExceptionpublic <T> T invokeAny(Collection<? extends Callable<T>> tasks) throws InterruptedException, ExecutionException
invokeAny in interface ExecutorServiceInterruptedExceptionExecutionExceptionpublic <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
invokeAny in interface ExecutorServiceInterruptedExceptionExecutionExceptionTimeoutExceptionCopyright © 2003–2020 Atlassian. All rights reserved.