public class FollowThreadLocalsExecutorService extends com.google.common.util.concurrent.ForwardingExecutorService implements FollowThreadsMixin
| Constructor and Description |
|---|
FollowThreadLocalsExecutorService(ExecutorService delegate,
String namePrefix) |
| Modifier and Type | Method and Description |
|---|---|
protected ExecutorService |
delegate() |
void |
execute(Runnable command) |
String |
getNamePrefix() |
<T> List<Future<T>> |
invokeAll(Collection<? extends Callable<T>> tasks) |
<T> List<Future<T>> |
invokeAll(Collection<? extends Callable<T>> tasks,
long timeout,
TimeUnit unit) |
<T> T |
invokeAny(Collection<? extends Callable<T>> tasks) |
<T> T |
invokeAny(Collection<? extends Callable<T>> tasks,
long timeout,
TimeUnit unit) |
<T> Future<T> |
submit(Callable<T> task) |
Future<?> |
submit(Runnable task) |
<T> Future<T> |
submit(Runnable task,
T result) |
awaitTermination, isShutdown, isTerminated, shutdown, shutdownNowclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittransformRequest, transformRequest, transformRequestspublic FollowThreadLocalsExecutorService(ExecutorService delegate, String namePrefix)
public String getNamePrefix()
getNamePrefix in interface FollowThreadsMixinpublic <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) throws InterruptedException
invokeAll in interface ExecutorServiceinvokeAll in class com.google.common.util.concurrent.ForwardingExecutorServiceInterruptedExceptionpublic <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException
invokeAll in interface ExecutorServiceinvokeAll in class com.google.common.util.concurrent.ForwardingExecutorServiceInterruptedExceptionpublic <T> T invokeAny(Collection<? extends Callable<T>> tasks) throws InterruptedException, ExecutionException
invokeAny in interface ExecutorServiceinvokeAny in class com.google.common.util.concurrent.ForwardingExecutorServiceInterruptedExceptionExecutionExceptionpublic <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
invokeAny in interface ExecutorServiceinvokeAny in class com.google.common.util.concurrent.ForwardingExecutorServiceInterruptedExceptionExecutionExceptionTimeoutExceptionpublic void execute(Runnable command)
public <T> Future<T> submit(Callable<T> task)
submit in interface ExecutorServicesubmit in class com.google.common.util.concurrent.ForwardingExecutorServicepublic Future<?> submit(Runnable task)
submit in interface ExecutorServicesubmit in class com.google.common.util.concurrent.ForwardingExecutorServicepublic <T> Future<T> submit(Runnable task, T result)
submit in interface ExecutorServicesubmit in class com.google.common.util.concurrent.ForwardingExecutorServiceprotected ExecutorService delegate()
delegate in class com.google.common.util.concurrent.ForwardingExecutorServiceCopyright © 2020. All rights reserved.