com.hazelcast.cache.impl.record
Interface CacheRecord<V>

Type Parameters:
V - the type of the value stored by this CacheRecord
All Superinterfaces:
Evictable, Expirable
All Known Implementing Classes:
AbstractCacheRecord, CacheDataRecord, CacheObjectRecord

public interface CacheRecord<V>
extends Expirable, Evictable

An expirable and evictable data object which represents a cache entry.

Record of ICacheRecordStore.


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.record.Expirable
getExpirationTime, isExpiredAt, setExpirationTime
 
Methods inherited from interface com.hazelcast.cache.impl.eviction.Evictable
getAccessHit, getAccessTime, getCreationTime
 

Method Detail

getValue

V getValue()
Gets the value of this CacheRecord.

Returns:
the value of this CacheRecord

setValue

void setValue(V value)
Sets the value of this CacheRecord.

Parameters:
value - the value for this CacheRecord

setCreationTime

void setCreationTime(long time)
Sets the creation time of this Evictable in milliseconds.

Parameters:
time - the creation time for this Evictable in milliseconds

setAccessTime

void setAccessTime(long time)
Sets the access time of this Evictable in milliseconds.

Parameters:
time - the latest access time of this Evictable in milliseconds

setAccessHit

void setAccessHit(int hit)
Sets the access hit count of this Evictable.

Parameters:
hit - the access hit count for this Evictable

incrementAccessHit

void incrementAccessHit()
Increases the access hit count of this Evictable as 1.


resetAccessHit

void resetAccessHit()
Resets the access hit count of this Evictable to 0.



Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.