public interface ThreadLocalDelegateExecutorFactory
Executor
instances that delegate to a specific Executor and ensure the executed code runs
in the same thread local context.Modifier and Type | Method and Description |
---|---|
<T> Callable<T> |
createCallable(Callable<T> delegate)
Creates a callable that ensures the executed runnable instance runs in the same thread local context as the
calling code.
|
Executor |
createExecutor(Executor delegate)
Creates an executor that ensures the executed delegate instance runs in the same thread local context as the
calling code.
|
ExecutorService |
createExecutorService(ExecutorService delegate)
Creates an executor service that ensures the executed delegate instance runs in the same thread local context as
the calling code.
|
Runnable |
createRunnable(Runnable delegate)
Creates a runnable that ensures the executed runnable instance runs in the same thread local context as the
calling code
|
ScheduledExecutorService |
createScheduledExecutorService(ScheduledExecutorService delegate)
Creates a scheduled executor service that ensures the executed delegate instance runs in the same thread local
context as the calling code.
|
Executor createExecutor(Executor delegate)
delegate
- The Executor instance to delegate toExecutorService createExecutorService(ExecutorService delegate)
delegate
- The ExecutorService instance to delegate toScheduledExecutorService createScheduledExecutorService(ScheduledExecutorService delegate)
delegate
- The ScheduledExecutorService instance to delegate toRunnable createRunnable(Runnable delegate)
delegate
- The runnable to delegate to<T> Callable<T> createCallable(Callable<T> delegate)
T
- The type that the callable returnsdelegate
- The callable to delegate toCopyright © 2015 Atlassian. All rights reserved.