Interface ConfigurableCacheMap.EvictionApprover

  • Enclosing interface:
    ConfigurableCacheMap

    public static interface ConfigurableCacheMap.EvictionApprover
    EvictionApprover is used to approve the eviction of an entry from the underlying ConfigurableCacheMap. An approver could be configured on a ConfigurableCacheMap to provide fine-grained control over whether a particular entry is eligible for eviction.
    • Method Detail

      • isEvictable

        boolean isEvictable​(ConfigurableCacheMap.Entry entry)
        Get an eviction approval for the specified entry.
        Parameters:
        entry - the entry for which the underlying ConfigurableCacheMap is seeking an eviction approval
        Returns:
        true iff the specified entry is allowed to be evicted