Interface EvictableEntryView<K,V>

Type Parameters:
K - the type of the key
V - 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 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 this EvictableEntryView in milliseconds.
      Returns:
      the creation time of this EvictableEntryView in milliseconds
    • getLastAccessTime

      long getLastAccessTime()
      Gets the latest access time difference of this EvictableEntryView in milliseconds.
      Returns:
      the latest access time of this EvictableEntryView in milliseconds
    • getHits

      long getHits()
      Gets the access hit count of this EvictableEntryView.
      Returns:
      the access hit count of this EvictableEntryView