|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
V - the type of the value stored by this CacheRecordpublic interface CacheRecord<V>
An expirable and evictable data object which represents a cache entry.
Record ofICacheRecordStore.
| Field Summary | |
|---|---|
static int |
EXPIRATION_TIME_NOT_AVAILABLE
|
| Method Summary | |
|---|---|
V |
getValue()
Gets the value of this CacheRecord. |
void |
incrementAccessHit()
Increases the access hit count of this Evictable as 1. |
void |
resetAccessHit()
Resets the access hit count of this Evictable to 0. |
void |
setAccessHit(int hit)
Sets the access hit count of this Evictable. |
void |
setAccessTime(long time)
Sets the access time of this Evictable in milliseconds. |
void |
setCreationTime(long time)
Sets the creation time of this Evictable in milliseconds. |
void |
setValue(V value)
Sets the value of this CacheRecord. |
| Methods inherited from interface com.hazelcast.cache.impl.eviction.Expirable |
|---|
getExpirationTime, isExpiredAt, setExpirationTime |
| Methods inherited from interface com.hazelcast.cache.impl.eviction.Evictable |
|---|
getAccessHit, getAccessTime, getCreationTime |
| Field Detail |
|---|
static final int EXPIRATION_TIME_NOT_AVAILABLE
| Method Detail |
|---|
V getValue()
CacheRecord.
CacheRecordvoid setValue(V value)
CacheRecord.
value - the value for this CacheRecordvoid setCreationTime(long time)
Evictable in milliseconds.
time - the creation time for this Evictable in millisecondsvoid setAccessTime(long time)
Evictable in milliseconds.
time - the latest access time of this Evictable in millisecondsvoid setAccessHit(int hit)
Evictable.
hit - the access hit count for this Evictablevoid incrementAccessHit()
Evictable as 1.
void resetAccessHit()
Evictable to 0.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||