public class ContextAwareExecutorService extends CallMappingExecutorService
context snapshot whenever a task is scheduled
(both Callable and Runnable tasks are mapped).| Constructor and Description |
|---|
ContextAwareExecutorService(ExecutorService delegate) |
| Modifier and Type | Method and Description |
|---|---|
protected <V> Callable<V> |
map(Callable<V> callable)
This method maps any callable (before scheduling it) by taking a snapshot of the context in the scheduling thread
and propagating this context into the executed callable by snapshot reactivation.
|
wrap, wrapawaitTermination, equals, execute, hashCode, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit, toString, wrap, wrapFutures, wrapTasksdelegate, nonNullDelegatepublic ContextAwareExecutorService(ExecutorService delegate)
protected <V> Callable<V> map(Callable<V> callable)
map in class CallMappingExecutorServiceV - the actual return type of the callable object being scheduled.callable - The callable to be mapped.Copyright © 2016–2017 Talsma ICT. All rights reserved.