Package com.hazelcast.spi.eviction
Interface EvictableEntryView<K,V>
- Type Parameters:
K- the type of the keyV- the type of the value
- All Known Subinterfaces:
CacheEntryView<K,,V> EntryView<K,V>
public interface EvictableEntryView<K,V>
Contract point (from the end user perspective)
for serving/accessing entries that can be evicted.
-
Method Summary
Modifier and TypeMethodDescriptionlongGets the creation time of thisEvictableEntryViewin milliseconds.longgetHits()Gets the access hit count of thisEvictableEntryView.getKey()Gets the key of the entry.longGets the latest access time difference of thisEvictableEntryViewin milliseconds.getValue()Gets the value of the entry.
-
Method Details
-
getKey
K getKey()Gets the key of the entry.- Returns:
- the key of the entry
-
getValue
V getValue()Gets the value of the entry.- Returns:
- the value of the entry
-
getCreationTime
long getCreationTime()Gets the creation time of thisEvictableEntryViewin milliseconds.- Returns:
- the creation time of this
EvictableEntryViewin milliseconds
-
getLastAccessTime
long getLastAccessTime()Gets the latest access time difference of thisEvictableEntryViewin milliseconds.- Returns:
- the latest access time of this
EvictableEntryViewin milliseconds
-
getHits
long getHits()Gets the access hit count of thisEvictableEntryView.- Returns:
- the access hit count of this
EvictableEntryView
-