|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||
RegisteredThreadLocal.set(Object) is called
we register with this threads RegisteredThreadLocals.
RegisteredThreadLocals.reset()
RegisteredThreadLocals and hence
can be automatically cleaned up at the end of a request.RegisteredThreadLocal objects that can be cleared all at one at the end of a request
The set of registered ThreadLocals is itself a ThreadLocal and that set will be cleared during
RegisteredThreadLocals.reset().ThreadLocal.remove() reset all the ThreadLocal values
This will help prevent warnings in Tomcat and concurrency problems in general.
|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||