public class ThreadLocalObject extends Base
 As of Coherence 3.3 this class is a wrapper around ThreadLocal.
 
 Note:  Where practical, use java.lang.ThreadLocal directly.
Base.LoggingWriter, Base.StackFrame| Constructor and Description | 
|---|
ThreadLocalObject()
Create a ThreadLocalObject. 
 | 
ThreadLocalObject(Object object)
Create a ThreadLocalObject with an initial value. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
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. 
 | 
azzert, azzert, azzert, azzertFailed, breakLines, breakLines, capitalize, checkNotEmpty, checkNotNull, checkRange, computeSafeWaitTime, decimalValue, dup, dup, ensureBigDecimal, ensureClassLoader, ensureRuntimeException, ensureRuntimeException, equals, equalsDeep, err, err, err, err, err, escape, formatDateTime, getCallerStackFrame, getCommonMonitor, getCommonMonitor, getCommonMonitor, getContextClassLoader, getContextClassLoader, getDeepMessage, getErr, getLastSafeTimeMillis, getLog, getMaxDecDigits, getMaxHexDigits, getOriginalException, getOut, getRandom, getRandomBinary, getRandomBinary, getRandomString, getSafeTimeMillis, getStackFrame, getStackFrames, getStackTrace, getStackTrace, getStackTrace, getThreadFactory, getTimeZone, getUpTimeMillis, hashCode, hexValue, indentString, indentString, isDecimal, isHex, isLogEcho, isOctal, log, log, log, log, log, makeInteger, makeLong, makeThread, mergeArray, mergeBooleanArray, mergeByteArray, mergeCharArray, mergeDoubleArray, mergeFloatArray, mergeIntArray, mergeLongArray, mod, mod, octalValue, out, out, out, out, out, pad, parseBandwidth, parseBandwidth, parseDelimitedString, parseHex, parseHex, parseMemorySize, parseMemorySize, parsePercentage, parseTime, parseTime, parseTimeNanos, parseTimeNanos, printStackTrace, randomize, randomize, randomize, randomize, read, read, read, read, read, read, read, replace, setErr, setLog, setLogEcho, setOut, sleep, toBandwidthString, toBandwidthString, toCharEscape, toCrc, toCrc, toCrc, toCrc, toCrc, toDecString, toDelimitedString, toDelimitedString, toDelimitedString, toDelimitedString, toHex, toHex, toHexDump, toHexEscape, toHexEscape, toHexEscape, toHexEscape, toHexString, toMemorySizeString, toMemorySizeString, toQuotedCharEscape, toQuotedStringEscape, toSqlString, toString, toString, toStringEscape, toUnicodeEscape, trace, trace, trace, trace, trace, trace, trace, trace, trace, truncateString, truncateString, waitpublic ThreadLocalObject()
public ThreadLocalObject(Object object)
object - the ThreadLocalObject value for the current threadpublic Object get()
set(Object)public void set(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 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