Liferay 6.1.2-ce-ga3

com.liferay.portal.kernel.util
Class CentralizedThreadLocal<T>

java.lang.Object
  extended by java.lang.ThreadLocal<T>
      extended by com.liferay.portal.kernel.util.CentralizedThreadLocal<T>
Direct Known Subclasses:
InitialThreadLocal

public class CentralizedThreadLocal<T>
extends ThreadLocal<T>


Constructor Summary
CentralizedThreadLocal(boolean shortLived)
           
 
Method Summary
static void clearLongLivedThreadLocals()
           
static void clearShortLivedThreadLocals()
           
protected  T copy(T value)
           
 T get()
           
static Map<CentralizedThreadLocal<?>,Object> getLongLivedThreadLocals()
           
static Map<CentralizedThreadLocal<?>,Object> getShortLivedThreadLocals()
           
 int hashCode()
           
 void remove()
           
 void set(T value)
           
static void setThreadLocals(Map<CentralizedThreadLocal<?>,Object> longLivedThreadLocals, Map<CentralizedThreadLocal<?>,Object> shortLivedThreadLocals)
           
 
Methods inherited from class java.lang.ThreadLocal
initialValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CentralizedThreadLocal

public CentralizedThreadLocal(boolean shortLived)
Method Detail

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)

Liferay 6.1.2-ce-ga3