Package com.hazelcast.cache
Interface CacheEntryView<K,V>
- Type Parameters:
K
- the type of the keyV
- the type of the value
- All Superinterfaces:
EvictableEntryView<K,
V>
Entry info for cache record.
-
Method Summary
Modifier and TypeMethodDescriptionlong
Gets the expiration time in milliseconds of the cache entry.Gets the expiry policy associated with this entry if there is one.long
getHits()
Gets the count of how many time this cache entry has been accessed.getKey()
Gets the key of the cache entry.long
Gets the last access time in milliseconds of the cache entry.getValue()
Gets the value of the cache entry.Methods inherited from interface com.hazelcast.spi.eviction.EvictableEntryView
getCreationTime
-
Method Details
-
getKey
K getKey()Gets the key of the cache entry.- Specified by:
getKey
in interfaceEvictableEntryView<K,
V> - Returns:
- the key of the cache entry
-
getValue
V getValue()Gets the value of the cache entry.- Specified by:
getValue
in interfaceEvictableEntryView<K,
V> - Returns:
- the value of the cache entry
-
getExpirationTime
long getExpirationTime()Gets the expiration time in milliseconds of the cache entry.- Returns:
- the expiration time in milliseconds of the cache entry
-
getLastAccessTime
long getLastAccessTime()Gets the last access time in milliseconds of the cache entry.- Specified by:
getLastAccessTime
in interfaceEvictableEntryView<K,
V> - Returns:
- the last access time in milliseconds of the cache entry
-
getHits
long getHits()Gets the count of how many time this cache entry has been accessed.- Specified by:
getHits
in interfaceEvictableEntryView<K,
V> - Returns:
- the count of how many time this cache entry has been accessed
-
getExpiryPolicy
Object getExpiryPolicy()Gets the expiry policy associated with this entry if there is one.- Returns:
- the expiry policy associated with this entry or
null
if there is none
-