|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface ConfigurableCacheMap.Entry
A cache Entry carries information additional to the base Map Entry in order to support eviction and expiry.
Method Summary | |
---|---|
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 interface java.util.Map.Entry |
---|
equals, getKey, getValue, hashCode, setValue |
Method Detail |
---|
void touch()
int getTouchCount()
long getLastTouchMillis()
long getExpiryMillis()
void setExpiryMillis(long lMillis)
lMillis
- pass the date/time value, in millis, for when the entry will expire, or pass zero to disable automatic expiryint getUnits()
void setUnits(int cUnits)
cUnits
- an integer value 0 or greater, with a larger value signifying a higher cost
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |