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 Summary

    Modifier and Type
    Method
    Description
    boolean
    isExpired(K key, V value)
    Checks whether a cached object expired
  • Method Details

    • 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