Interface DistributedPolicy.CacheEntry<K,​V>

  • Type Parameters:
    K - the key type of the cache
    V - the value type of the cache
    Enclosing interface:
    DistributedPolicy<K,​V>

    public static interface DistributedPolicy.CacheEntry<K,​V>
    Interface representing a cache entry containing key and value along with some metadata.
    • Method Detail

      • getId

        org.bson.types.ObjectId getId()
        Get the id of the cache entry.
        Returns:
        the id
      • getKey

        K getKey()
        Get the key of the cache entry.
        Returns:
        the key
      • getValue

        V getValue()
        Get the value of the cache entry.
        Returns:
        the value
      • getStatus

        String getStatus()
        Get the status of the cache entry
        Returns:
        the status
      • getTouched

        Date getTouched()
        Get the touched date of the cache entry.
        Returns:
        the touched date
      • isEvicted

        boolean isEvicted()
        Indicates whether the cache entry is already evicted or not.
        Returns:
        true if the cache entry is already evicted, otherwise false