Package com.tangosol.net.partition
Class ObservableSplittingBackingCache.EntrySet.Entry
java.lang.Object
com.tangosol.util.Base
com.tangosol.util.SimpleMapEntry
com.tangosol.util.AbstractKeyBasedMap.EntrySet.Entry
com.tangosol.net.partition.ObservableSplittingBackingCache.EntrySet.Entry
- All Implemented Interfaces:
- ConfigurableCacheMap.Entry,- InvocableMap.Entry,- MapTrigger.Entry,- QueryMap.Entry,- Serializable,- Cloneable,- Map.Entry
- Enclosing class:
- ObservableSplittingBackingCache.EntrySet
public class ObservableSplittingBackingCache.EntrySet.Entry
extends AbstractKeyBasedMap.EntrySet.Entry
implements ConfigurableCacheMap.Entry
A Cache Entry implementation.
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class com.tangosol.util.BaseBase.LoggingWriter
- 
Field SummaryFields inherited from class com.tangosol.util.SimpleMapEntrym_oKey, m_oOrigValue, m_oValue, NO_VALUE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected ConfigurableCacheMap.EntryObtain the actual cache entry from the partition-specific backing map.longDetermine when the cache entry will expire, if ever.longDetermine when the cache entry was last touched.intDetermine the number of times that the cache entry has been touched (since the touch count was last reset).intgetUnits()Determine the number of cache units used by this Entry.getValue()Returns the value corresponding to this entry.protected voidsetCacheEntry(ConfigurableCacheMap.Entry entryBacking) Configure the backing map cache entry.voidsetExpiryMillis(long lMillis) Specify when the cache entry will expire, or disable expiry.voidsetUnits(int cUnits) Specify the number of cache units used by this Entry.voidtouch()Indicate to the entry that it has been touched, such as when it is accessed or modified.Methods inherited from class com.tangosol.util.AbstractKeyBasedMap.EntrySet.EntryhashCode, setValueMethods inherited from class com.tangosol.util.SimpleMapEntryclone, equals, extract, getKey, getOriginalValue, isOriginalPresent, isPresent, isSynthetic, remove, setValue, toString, updateMethods inherited from class com.tangosol.util.Baseazzert, 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, getProcessRandom, 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, newHashMap, newHashMap, newHashSet, newHashSet, 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, waitMethods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.tangosol.util.InvocableMap.EntryasBinaryEntry, getValue, getValueMethods inherited from interface com.tangosol.util.QueryMap.EntryextractFromKey, extractFromValue
- 
Constructor Details- 
EntryConstruct an Entry.- Parameters:
- oKey- the Entry key
- oValue- the Entry value (optional)
 
 
- 
- 
Method Details- 
getValueReturns the value corresponding to this entry.- Specified by:
- getValuein interface- InvocableMap.Entry
- Specified by:
- getValuein interface- Map.Entry
- Overrides:
- getValuein class- AbstractKeyBasedMap.EntrySet.Entry
- Returns:
- the value corresponding to this entry
 
- 
touchpublic void touch()Indicate to the entry that it has been touched, such as when it is accessed or modified.- Specified by:
- touchin interface- ConfigurableCacheMap.Entry
 
- 
getTouchCountpublic int getTouchCount()Determine the number of times that the cache entry has been touched (since the touch count was last reset).- Specified by:
- getTouchCountin interface- ConfigurableCacheMap.Entry
- Returns:
- the number of times that the cache entry has been touched
 
- 
getLastTouchMillispublic long getLastTouchMillis()Determine when the cache entry was last touched.- Specified by:
- getLastTouchMillisin interface- ConfigurableCacheMap.Entry
- Returns:
- the date/time value, in millis, when the entry was most recently touched
 
- 
getExpiryMillispublic long getExpiryMillis()Determine when the cache entry will expire, if ever.- Specified by:
- getExpiryMillisin interface- ConfigurableCacheMap.Entry
- Returns:
- the date/time value, in millis, when the entry will (or did) expire; zero indicates no expiry
 
- 
setExpiryMillispublic void setExpiryMillis(long lMillis) Specify when the cache entry will expire, or disable expiry. Note that if the cache is configured for automatic expiry, each subsequent update to this cache entry will reschedule the expiry time.- Specified by:
- setExpiryMillisin interface- ConfigurableCacheMap.Entry
- Parameters:
- lMillis- pass the date/time value, in millis, for when the entry will expire, or pass zero to disable automatic expiry
 
- 
getUnitspublic int getUnits()Determine the number of cache units used by this Entry.- Specified by:
- getUnitsin interface- ConfigurableCacheMap.Entry
- Returns:
- an integer value 0 or greater, with a larger value signifying a higher cost; -1 implies that the Entry has been discarded
 
- 
setUnitspublic void setUnits(int cUnits) Specify the number of cache units used by this Entry.- Specified by:
- setUnitsin interface- ConfigurableCacheMap.Entry
- Parameters:
- cUnits- an integer value 0 or greater, with a larger value signifying a higher cost
 
- 
setCacheEntryConfigure the backing map cache entry.- Parameters:
- entryBacking- the entry to delegate most of this entry's operations to
 
- 
getCacheEntryObtain the actual cache entry from the partition-specific backing map.- Returns:
- the actual underlying cache entry
 
 
-