|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.sal.core.executor.DefaultThreadLocalDelegateExecutorFactory
public class DefaultThreadLocalDelegateExecutorFactory
Creates delegating executable classes that copy thread local state
| Constructor Summary | |
|---|---|
protected |
DefaultThreadLocalDelegateExecutorFactory(ThreadLocalContextManager manager)
|
| Method Summary | ||
|---|---|---|
|
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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected DefaultThreadLocalDelegateExecutorFactory(ThreadLocalContextManager manager)
| Method Detail |
|---|
public Executor createExecutor(Executor delegate)
createExecutor in interface ThreadLocalDelegateExecutorFactorydelegate - The Executor instance to delegate to
public ExecutorService createExecutorService(ExecutorService delegate)
createExecutorService in interface ThreadLocalDelegateExecutorFactorydelegate - The ExecutorService instance to delegate to
public ScheduledExecutorService createScheduledExecutorService(ScheduledExecutorService delegate)
createScheduledExecutorService in interface ThreadLocalDelegateExecutorFactorydelegate - The ScheduledExecutorService instance to delegate to
public Runnable createRunnable(Runnable delegate)
createRunnable in interface ThreadLocalDelegateExecutorFactorydelegate - The runnable to delegate to
public <T> Callable<T> createCallable(Callable<T> delegate)
createCallable in interface ThreadLocalDelegateExecutorFactoryT - The type that the callable returnsdelegate - The callable to delegate to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||