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, submit
public SecurityContextExecutorService(ExecutorService service)
protected Runnable wrap(Runnable r)
wrap
in class InterceptingExecutorService
protected <V> Callable<V> wrap(Callable<V> c)
wrap
in class InterceptingExecutorService
Copyright © 2004–2019. All rights reserved.