| 
 | Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
   com.tangosol.util.Base
com.tangosol.util.Base
       com.tangosol.util.ThreadLocalObject
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 around ThreadLocal.
Note: Where practical, use java.lang.ThreadLocal directly.
| Constructor Summary | |
|---|---|
| ThreadLocalObject()Create a ThreadLocalObject. | |
| ThreadLocalObject(java.lang.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 | 
|  java.lang.Object | get()Get the value of the ThreadLocalObject for the current thread. | 
|  java.lang.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  java.lang.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(java.lang.Object object)Set the value of the ThreadLocalObject for the current thread. | 
|  void | setObject(java.lang.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(java.lang.Object object)Set the value stored by this instance of ThreadLocalObject. | 
| Constructor Detail | 
|---|
public ThreadLocalObject()
public ThreadLocalObject(java.lang.Object object)
object - the ThreadLocalObject value for the current thread| Method Detail | 
|---|
public java.lang.Object get()
set(Object)public void set(java.lang.Object object)
object - the value for the current threadget()public void remove()
Note: On 1.4.x JVMs this method will not free any storage but will reset the value to the initial value.
public java.lang.Object getObject()
setObject(Object)public void setObject(java.lang.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 java.lang.Object getValue()
protected void setValue(java.lang.Object object)
object - the new value| 
 | Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||