Interface PassiveExpiringMap.ExpirationPolicy<K,V>

    • Method Summary

      Modifier and Type Method and Description
      long expirationTime(K key, V value)
      Determine the expiration time for the given key-value entry.
    • Method Detail

      • expirationTime

        long expirationTime(K key,
                            V value)
        Determine the expiration time for the given key-value entry.
        Parameters:
        key - the key for the entry.
        value - the value for the entry.
        Returns:
        the expiration time value measured in milliseconds. A negative return value indicates the entry never expires.