Package fr.gouv.vitam.common.lru
Interface InterfaceLruCacheEntry<V>
-
- Type Parameters:
V
- Value
public interface InterfaceLruCacheEntry<V>
Cache Entry interface author Damian Momot
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description V
getValue()
Returns value stored in entry or null if entry is not validboolean
isStillValid(long timeRef)
boolean
resetTime(long ttl)
Reset the time of overtime
-
-
-
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
-
-