V - the type of the value stored by this CacheRecordpublic interface CacheRecord<V> extends Expirable, Evictable
An expirable and evictable data object which represents a cache entry.
Record ofICacheRecordStore.| Modifier and Type | Field and Description | 
|---|---|
| static int | ACCESS_HIT_NOT_AVAILABLE | 
| static int | EXPIRATION_TIME_NOT_AVAILABLE | 
| Modifier and Type | Method and Description | 
|---|---|
| long | getTombstoneSequence()Returns tombstone sequence associated with this record. | 
| V | getValue()Gets the value of this  CacheRecord. | 
| void | incrementAccessHit()Increases the access hit count of this  Evictableas1. | 
| boolean | isTombstone()Tells whether this record is a tombstone or not. | 
| void | resetAccessHit()Resets the access hit count of this  Evictableto0. | 
| void | setAccessHit(int hit)Sets the access hit count of this  Evictable. | 
| void | setAccessTime(long time)Sets the access time of this  Evictablein milliseconds. | 
| void | setCreationTime(long time)Sets the creation time of this  Evictablein milliseconds. | 
| void | setTombstoneSequence(long seq)Sets tombstone sequence associated with this record. | 
| void | setValue(V value)Sets the value of this  CacheRecord. | 
getExpirationTime, isExpiredAt, setExpirationTimegetAccessHit, getAccessTime, getCreationTimestatic final int EXPIRATION_TIME_NOT_AVAILABLE
static final int ACCESS_HIT_NOT_AVAILABLE
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.boolean isTombstone()
long getTombstoneSequence()
void setTombstoneSequence(long seq)
seq - tombstone sequenceCopyright © 2015 Hazelcast, Inc.. All Rights Reserved.