|
||||||||||
| 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(java.util.concurrent.Callable<T> delegate)
Creates a callable that ensures the executed runnable instance runs in the same thread local context as the calling code. |
|
java.util.concurrent.Executor |
createExecutor(java.util.concurrent.Executor delegate)
Creates an executor that ensures the executed delegate instance runs in the same thread local context as the calling code. |
|
java.util.concurrent.ExecutorService |
createExecutorService(java.util.concurrent.ExecutorService delegate)
Creates an executor service that ensures the executed delegate instance runs in the same thread local context as the calling code. |
|
java.lang.Runnable |
createRunnable(java.lang.Runnable delegate)
Creates a runnable that ensures the executed runnable instance runs in the same thread local context as the calling code |
|
java.util.concurrent.ScheduledExecutorService |
createScheduledExecutorService(java.util.concurrent.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 |
|---|
java.util.concurrent.Executor createExecutor(java.util.concurrent.Executor delegate)
delegate - The Executor instance to delegate to
java.util.concurrent.ExecutorService createExecutorService(java.util.concurrent.ExecutorService delegate)
delegate - The ExecutorService instance to delegate to
java.util.concurrent.ScheduledExecutorService createScheduledExecutorService(java.util.concurrent.ScheduledExecutorService delegate)
delegate - The ScheduledExecutorService instance to delegate to
java.lang.Runnable createRunnable(java.lang.Runnable delegate)
delegate - The runnable to delegate to
<T> java.util.concurrent.Callable<T> createCallable(java.util.concurrent.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 | |||||||||