|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tangosol.util.Base
com.tangosol.util.ThreadLocalObject
public class ThreadLocalObject
This class provides an implementation of thread local storage.
As of Coherence 3.3 this class is a wrapper aroundThreadLocal
.
Note: Where practical, use java.lang.ThreadLocal
directly.
Constructor Summary | |
---|---|
ThreadLocalObject()
Create a ThreadLocalObject. |
|
ThreadLocalObject(Object object)
Create a ThreadLocalObject with an initial value. |
Method Summary | |
---|---|
void |
check()
Deprecated. as of Coherence 3.3 this method is a no-op |
Object |
get()
Get the value of the ThreadLocalObject for the current thread. |
Object |
getObject()
Get the value of the ThreadLocalObject for the current thread. |
int |
getPruneDelay()
Deprecated. as of Coherence 3.3 this method always returns zero. |
int |
getRollover()
Deprecated. as of Coherence 3.3 this method always returns zero. |
protected Object |
getValue()
Get the value stored by this instance of ThreadLocalObject. |
void |
prune()
Deprecated. as of Coherence 3.3 this method is a no-op |
void |
remove()
Remove the ThreadLocalObject for the current thread. |
void |
set(Object object)
Set the value of the ThreadLocalObject for the current thread. |
void |
setObject(Object object)
Set the value of the ThreadLocalObject for the current thread. |
void |
setPruneDelay(int cMillisDelay)
Deprecated. as of Coherence 3.3 this method is a no-op |
void |
setRollover(int cRollover)
Deprecated. as of Coherence 3.3 this method is a no-op |
protected void |
setValue(Object object)
Set the value stored by this instance of ThreadLocalObject. |
Constructor Detail |
---|
public ThreadLocalObject()
public ThreadLocalObject(Object object)
object
- the ThreadLocalObject value for the current threadMethod Detail |
---|
public Object get()
set(Object)
public void set(Object object)
object
- the value for the current threadget()
public void remove()
public Object getObject()
setObject(Object)
public void setObject(Object object)
object
- the value for the current threadgetObject()
public void check()
public void prune()
public int getRollover()
public void setRollover(int cRollover)
cRollover
- the rollover valuepublic int getPruneDelay()
public void setPruneDelay(int cMillisDelay)
cMillisDelay
- the minimum number of milliseconds to delayprotected Object getValue()
protected void setValue(Object object)
object
- the new value
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |