public class ThreadLocalUtil extends Object
Constructor and Description |
---|
ThreadLocalUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
clearAllThreadLocals()
Clear
ThreadLocal s of the current thread. |
public static void clearAllThreadLocals()
ThreadLocal
s of the current thread.
This can be used to clean out a thread before "returning"
it to a thread-pool or a Web-Container like Tomcat.