public class SerializationCache.EntrySet.Entry extends AbstractKeyBasedMap.EntrySet.Entry implements ConfigurableCacheMap.Entry
Base.LoggingWriter, Base.StackFrame
m_oKey, m_oOrigValue, m_oValue, NO_VALUE
Constructor and Description |
---|
Entry(Object oKey, Object oValue)
Construct an Entry.
|
Modifier and Type | Method and Description |
---|---|
protected SerializationCache.EntryAttributes |
getAttributes()
Obtain the cache attributes for this entry.
|
long |
getExpiryMillis()
Determine when the cache entry will expire, if ever.
|
long |
getLastTouchMillis()
Determine when the cache entry was last touched.
|
int |
getTouchCount()
Determine the number of times that the cache entry has been touched (since the touch count was last reset).
|
int |
getUnits()
Determine the number of cache units used by this Entry.
|
void |
setExpiryMillis(long lMillis)
Specify when the cache entry will expire, or disable expiry.
|
void |
setUnits(int cUnits)
Specify the number of cache units used by this Entry.
|
void |
touch()
Indicate to the entry that it has been touched, such as when it is accessed or modified.
|
getValue, hashCode, setValue
clone, equals, extract, getKey, getOriginalValue, isOriginalPresent, isPresent, isSynthetic, remove, setValue, toString, update
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, getThreadFactory, getTimeZone, getUpTimeMillis, hashCode, hexValue, indentString, indentString, isDecimal, isHex, isLogEcho, isOctal, log, log, log, log, log, makeInteger, makeLong, makeThread, 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, 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, wait
finalize, getClass, notify, notifyAll, wait, wait, wait
comparingByKey, comparingByKey, comparingByValue, comparingByValue, equals, getKey, getValue, hashCode, setValue
extractFromKey, extractFromValue
public void touch()
touch
in interface ConfigurableCacheMap.Entry
public int getTouchCount()
getTouchCount
in interface ConfigurableCacheMap.Entry
public long getLastTouchMillis()
getLastTouchMillis
in interface ConfigurableCacheMap.Entry
public long getExpiryMillis()
getExpiryMillis
in interface ConfigurableCacheMap.Entry
public void setExpiryMillis(long lMillis)
setExpiryMillis
in interface ConfigurableCacheMap.Entry
lMillis
- pass the date/time value, in millis, for when the entry will expire, or pass zero to disable automatic expirypublic int getUnits()
getUnits
in interface ConfigurableCacheMap.Entry
public void setUnits(int cUnits)
setUnits
in interface ConfigurableCacheMap.Entry
cUnits
- an integer value 0 or greater, with a larger value signifying a higher costprotected SerializationCache.EntryAttributes getAttributes()