|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.oracle.common.collections.ConverterCollections.ConverterEntry
com.tangosol.util.ConverterCollections.ConverterCacheEntry
public static class ConverterCollections.ConverterCacheEntry
A ConfigurableCacheMap.Entry that lazily converts the key and value.
Field Summary |
---|
Fields inherited from class com.oracle.common.collections.ConverterCollections.ConverterEntry |
---|
m_convKeyUp, m_convValDown, m_convValUp |
Constructor Summary | |
---|---|
ConverterCollections.ConverterCacheEntry(ConfigurableCacheMap.Entry entry, Converter conKeyUp, Converter conValUp, Converter conValDown) |
Method Summary | |
---|---|
ConfigurableCacheMap.Entry |
getEntry() |
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.oracle.common.collections.ConverterCollections.ConverterEntry |
---|
getConverterKeyUp, getConverterValueDown, getConverterValueUp |
Methods inherited from interface java.util.Map.Entry |
---|
equals, getKey, getValue, hashCode, setValue |
Constructor Detail |
---|
public ConverterCollections.ConverterCacheEntry(ConfigurableCacheMap.Entry entry, Converter conKeyUp, Converter conValUp, Converter conValDown)
Method Detail |
---|
public ConfigurableCacheMap.Entry getEntry()
getEntry
in class com.oracle.common.collections.ConverterCollections.ConverterEntry
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 cost
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |