com.liferay.portal.kernel.util
Class CentralizedThreadLocal<T>
java.lang.Object
java.lang.ThreadLocal<T>
com.liferay.portal.kernel.util.CentralizedThreadLocal<T>
- Direct Known Subclasses:
- InitialThreadLocal
public class CentralizedThreadLocal<T>
- extends ThreadLocal<T>
CentralizedThreadLocal
public CentralizedThreadLocal(boolean shortLived)
clearLongLivedThreadLocals
public static void clearLongLivedThreadLocals()
clearShortLivedThreadLocals
public static void clearShortLivedThreadLocals()
getLongLivedThreadLocals
public static Map<CentralizedThreadLocal<?>,Object> getLongLivedThreadLocals()
getShortLivedThreadLocals
public static Map<CentralizedThreadLocal<?>,Object> getShortLivedThreadLocals()
setThreadLocals
public static void setThreadLocals(Map<CentralizedThreadLocal<?>,Object> longLivedThreadLocals,
Map<CentralizedThreadLocal<?>,Object> shortLivedThreadLocals)
get
public T get()
- Overrides:
get
in class ThreadLocal<T>
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
remove
public void remove()
- Overrides:
remove
in class ThreadLocal<T>
set
public void set(T value)
- Overrides:
set
in class ThreadLocal<T>
copy
protected T copy(T value)