- java.lang.Object
-
- com.aoapps.lang.concurrent.ThreadLocalsCallable<T>
-
- All Implemented Interfaces:
Callable<T>
public class ThreadLocalsCallable<T> extends Object implements Callable<T>
Copies any number of ThreadLocal values from the current thread onto the thread that runs the provided callable.- See Also:
ThreadLocal
-
-
Constructor Summary
Constructors Constructor Description ThreadLocalsCallable(Callable<T> task, ThreadLocal<?>... threadLocals)
-