Interface CacheEntryView<K,V>

Type Parameters:
K - the type of the key
V - the type of the value
All Superinterfaces:
EvictableEntryView<K,V>

public interface CacheEntryView<K,V> extends EvictableEntryView<K,V>
Entry info for cache record.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Gets the expiration time in milliseconds of the cache entry.
    Gets the expiry policy associated with this entry if there is one.
    long
    Gets the count of how many time this cache entry has been accessed.
    Gets the key of the cache entry.
    long
    Gets the last access time in milliseconds of the cache entry.
    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 interface EvictableEntryView<K,V>
      Returns:
      the key of the cache entry
    • getValue

      V getValue()
      Gets the value of the cache entry.
      Specified by:
      getValue in interface EvictableEntryView<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 interface EvictableEntryView<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 interface EvictableEntryView<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