public class ThreadLocalDelegateExecutorService extends Object implements ExecutorService
| Constructor and Description |
|---|
ThreadLocalDelegateExecutorService(ExecutorService delegate,
ThreadLocalDelegateExecutorFactory delegateExecutorFactory) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long timeout,
TimeUnit unit) |
void |
execute(Runnable runnable) |
<T> List<Future<T>> |
invokeAll(Collection<? extends Callable<T>> callables) |
<T> List<Future<T>> |
invokeAll(Collection<? extends Callable<T>> callables,
long timeout,
TimeUnit unit) |
<T> T |
invokeAny(Collection<? extends Callable<T>> callables) |
<T> T |
invokeAny(Collection<? extends Callable<T>> callables,
long timeout,
TimeUnit unit) |
boolean |
isShutdown() |
boolean |
isTerminated() |
void |
shutdown() |
List<Runnable> |
shutdownNow() |
<T> Future<T> |
submit(Callable<T> callable) |
Future<?> |
submit(Runnable runnable) |
<T> Future<T> |
submit(Runnable runnable,
T result) |
public ThreadLocalDelegateExecutorService(ExecutorService delegate, ThreadLocalDelegateExecutorFactory delegateExecutorFactory)
public void shutdown()
shutdown in interface ExecutorService@Nonnull public 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 ExecutorServiceInterruptedException@Nonnull public <T> Future<T> submit(Callable<T> callable)
submit in interface ExecutorService@Nonnull public <T> Future<T> submit(Runnable runnable, @Nullable T result)
submit in interface ExecutorService@Nonnull public Future<?> submit(Runnable runnable)
submit in interface ExecutorService@Nonnull public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> callables) throws InterruptedException
invokeAll in interface ExecutorServiceInterruptedException@Nonnull public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> callables, long timeout, TimeUnit unit) throws InterruptedException
invokeAll in interface ExecutorServiceInterruptedException@Nonnull public <T> T invokeAny(Collection<? extends Callable<T>> callables) throws InterruptedException, ExecutionException
invokeAny in interface ExecutorServiceInterruptedExceptionExecutionExceptionpublic <T> T invokeAny(Collection<? extends Callable<T>> callables, long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
invokeAny in interface ExecutorServiceInterruptedExceptionExecutionExceptionTimeoutExceptionCopyright © 2018 Atlassian. All rights reserved.