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 TypeMethodDescriptionlong
Gets the creation time of thisEvictableEntryView
in milliseconds.long
getHits()
Gets the access hit count of thisEvictableEntryView
.getKey()
Gets the key of the entry.long
Gets the latest access time difference of thisEvictableEntryView
in 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 thisEvictableEntryView
in milliseconds.- Returns:
- the creation time of this
EvictableEntryView
in milliseconds
-
getLastAccessTime
long getLastAccessTime()Gets the latest access time difference of thisEvictableEntryView
in milliseconds.- Returns:
- the latest access time of this
EvictableEntryView
in milliseconds
-
getHits
long getHits()Gets the access hit count of thisEvictableEntryView
.- Returns:
- the access hit count of this
EvictableEntryView
-