|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ThreadLocalDelegateExecutorFactory
Factory to create Executor
instances that delegate to a specific Executor and ensure the executed code runs
in the same thread local context.
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. |
Method Detail |
---|
Executor createExecutor(Executor delegate)
delegate
- The Executor instance to delegate to
ExecutorService createExecutorService(ExecutorService delegate)
delegate
- The ExecutorService instance to delegate to
ScheduledExecutorService createScheduledExecutorService(ScheduledExecutorService delegate)
delegate
- The ScheduledExecutorService instance to delegate to
Runnable 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 to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |