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 TypeMethodDescriptionlongGets the expiration time in milliseconds of the cache entry.Gets the expiry policy associated with this entry if there is one.longgetHits()Gets the count of how many time this cache entry has been accessed.getKey()Gets the key of the cache entry.longGets 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:
getKeyin interfaceEvictableEntryView<K,V> - Returns:
- the key of the cache entry
-
getValue
V getValue()Gets the value of the cache entry.- Specified by:
getValuein 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:
getLastAccessTimein 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:
getHitsin 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
nullif there is none
-