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