Interface ExpiringConcurrentCache.ExpiryChecker<K,​V>

  • Enclosing class:
    ExpiringConcurrentCache<K,​V>

    public static interface ExpiringConcurrentCache.ExpiryChecker<K,​V>
    Interface for checking whether a cached object expired
    • Method Detail

      • isExpired

        boolean isExpired​(K key,
                          V value)
        Checks whether a cached object expired
        Parameters:
        key - cache key
        value - cached value
        Returns:
        true if the value expired and should be removed from the cache, false otherwise