|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-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.SimpleMapEntry
com.tangosol.util.AbstractKeyBasedMap.EntrySet.Entry
com.tangosol.net.cache.SerializationCache.EntrySet.Entry
public class SerializationCache.EntrySet.Entry
A Cache Entry implementation.
Field Summary |
---|
Fields inherited from class com.tangosol.util.SimpleMapEntry |
---|
m_oKey, m_oOrigValue, m_oValue, NO_VALUE |
Constructor Summary | |
---|---|
SerializationCache.EntrySet.Entry(Object oKey, Object oValue) Construct an Entry. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.tangosol.util.AbstractKeyBasedMap.EntrySet.Entry |
---|
getValue, hashCode, setValue |
Methods inherited from class com.tangosol.util.SimpleMapEntry |
---|
clone, equals, extract, getKey, getOriginalValue, isOriginalPresent, isPresent, remove, setValue, toString, update |
Methods inherited from interface java.util.Map.Entry |
---|
equals, getKey, getValue, hashCode, setValue |
Constructor Detail |
---|
public SerializationCache.EntrySet.Entry(Object oKey, Object oValue)
oKey
- the Entry keyoValue
- the Entry value (optional)Method Detail |
---|
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()
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |