B C G I R S

B

BruteForceThreadLocalCleanup - Class in com.atlassian.threadlocal
Code copied from Tomcat 7 to clean up thread locals.
BruteForceThreadLocalCleanup() - Constructor for class com.atlassian.threadlocal.BruteForceThreadLocalCleanup
 

C

cleanUp(ClassLoader) - Static method in class com.atlassian.threadlocal.BruteForceThreadLocalCleanup
Can be called to cleanup ThreadLocals for the specified class loader
cleanUp(ClassLoader, Thread) - Static method in class com.atlassian.threadlocal.BruteForceThreadLocalCleanup
 
com.atlassian.threadlocal - package com.atlassian.threadlocal
 

G

get() - Static method in class com.atlassian.threadlocal.RegisteredThreadLocals
 

I

initialValue() - Method in class com.atlassian.threadlocal.RegisteredThreadLocal
We use lazy registration so that any time this method or RegisteredThreadLocal.set(Object) is called we register with this threads RegisteredThreadLocals.
isDevMode() - Static method in class com.atlassian.threadlocal.BruteForceThreadLocalCleanup
 

R

register(ThreadLocal) - Static method in class com.atlassian.threadlocal.RegisteredThreadLocals
Call this to register a ThreadLocal that can be cleaned up in one fell swoop via RegisteredThreadLocals.reset()
RegisteredThreadLocal<T> - Class in com.atlassian.threadlocal
A ThreadLocal class that registers itself with RegisteredThreadLocals and hence can be automatically cleaned up at the end of a request.
RegisteredThreadLocal() - Constructor for class com.atlassian.threadlocal.RegisteredThreadLocal
 
RegisteredThreadLocals - Class in com.atlassian.threadlocal
A registry of 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().

RegisteredThreadLocals() - Constructor for class com.atlassian.threadlocal.RegisteredThreadLocals
 
reset() - Static method in class com.atlassian.threadlocal.RegisteredThreadLocals
Call this at the end of the request to ThreadLocal.remove() reset all the ThreadLocal values

This will help prevent warnings in Tomcat and concurrency problems in general.


S

set(T) - Method in class com.atlassian.threadlocal.RegisteredThreadLocal
 
supplyInitialValue() - Method in class com.atlassian.threadlocal.RegisteredThreadLocal
Alternate template method for supplying the initial value

B C G I R S

Copyright © 2013 Atlassian. All Rights Reserved.