Interface InterfaceLruCacheEntry<V>

  • Type Parameters:
    V - Value

    public interface InterfaceLruCacheEntry<V>
    Cache Entry interface author Damian Momot
    • Method Detail

      • getValue

        V getValue()
        Returns value stored in entry or null if entry is not valid
        Returns:
        Value
      • isStillValid

        boolean isStillValid​(long timeRef)
        Parameters:
        timeRef -
        Returns:
        True if this entry is still valid
      • resetTime

        boolean resetTime​(long ttl)
        Reset the time of overtime
        Parameters:
        ttl -
        Returns:
        True if this entry has its time reset