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, submit
public ContextResettingExecutorService(ExecutorService base)
protected Runnable wrap(Runnable r)
wrap
in class InterceptingExecutorService
protected <V> Callable<V> wrap(Callable<V> r)
wrap
in class InterceptingExecutorService
Copyright © 2015. All rights reserved.