public class ContextResettingExecutorService extends InterceptingExecutorService
ExecutorService wrapper that resets the context classloader.
This protects an executor service from poorly written callable that doesn't restore
thread states correctly.| Constructor and Description |
|---|
ContextResettingExecutorService(ExecutorService base) |
| Modifier and Type | Method and Description |
|---|---|
protected <V> Callable<V> |
wrap(Callable<V> r) |
protected Runnable |
wrap(Runnable r) |
delegate, execute, invokeAll, invokeAll, invokeAny, invokeAny, submit, submit, submitpublic ContextResettingExecutorService(ExecutorService base)
protected Runnable wrap(Runnable r)
wrap in class InterceptingExecutorServiceprotected <V> Callable<V> wrap(Callable<V> r)
wrap in class InterceptingExecutorServiceCopyright © 2019. All rights reserved.