public class SecurityContextExecutorService extends InterceptingExecutorService
ExecutorService
implementation whose submit and related methods capture the current
SecurityContext and then wrap any runnable/callable objects in another
runnable/callable that sets the context before execution and resets it
afterwards.| Constructor and Description |
|---|
SecurityContextExecutorService(ExecutorService service) |
| Modifier and Type | Method and Description |
|---|---|
protected <V> Callable<V> |
wrap(Callable<V> c) |
protected Runnable |
wrap(Runnable r) |
delegate, execute, invokeAll, invokeAll, invokeAny, invokeAny, submit, submit, submitpublic SecurityContextExecutorService(ExecutorService service)
protected Runnable wrap(Runnable r)
wrap in class InterceptingExecutorServiceprotected <V> Callable<V> wrap(Callable<V> c)
wrap in class InterceptingExecutorServiceCopyright © 2019. All rights reserved.