public class DefaultThreadLocalDelegateExecutorFactory<C> extends Object implements ThreadLocalDelegateExecutorFactory
| Modifier | Constructor and Description |
|---|---|
protected |
DefaultThreadLocalDelegateExecutorFactory(ThreadLocalContextManager<C> manager) |
| 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.
|
protected DefaultThreadLocalDelegateExecutorFactory(ThreadLocalContextManager<C> manager)
public Executor createExecutor(Executor delegate)
createExecutor in interface ThreadLocalDelegateExecutorFactorydelegate - The Executor instance to delegate topublic ExecutorService createExecutorService(ExecutorService delegate)
createExecutorService in interface ThreadLocalDelegateExecutorFactorydelegate - The ExecutorService instance to delegate topublic ScheduledExecutorService createScheduledExecutorService(ScheduledExecutorService delegate)
createScheduledExecutorService in interface ThreadLocalDelegateExecutorFactorydelegate - The ScheduledExecutorService instance to delegate topublic Runnable createRunnable(Runnable delegate)
createRunnable in interface ThreadLocalDelegateExecutorFactorydelegate - The runnable to delegate topublic <T> Callable<T> createCallable(Callable<T> delegate)
createCallable in interface ThreadLocalDelegateExecutorFactoryT - The type that the callable returnsdelegate - The callable to delegate toCopyright © 2018 Atlassian. All rights reserved.