Class CacheInvalidationPolicyTimeToLive<EntryType extends CacheEntry<ObjectType>,ObjectType>
java.lang.Object
se.liu.ida.hefquin.base.datastructures.impl.cache.CacheInvalidationPolicyTimeToLive<EntryType,ObjectType>
- All Implemented Interfaces:
CacheInvalidationPolicy<EntryType,
ObjectType>
public class CacheInvalidationPolicyTimeToLive<EntryType extends CacheEntry<ObjectType>,ObjectType>
extends Object
implements CacheInvalidationPolicy<EntryType,ObjectType>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returnstrue
if the given cache entry has not reached the time to live considered by this policy.
-
Field Details
-
timeToLive
protected final long timeToLive
-
-
Constructor Details
-
CacheInvalidationPolicyTimeToLive
public CacheInvalidationPolicyTimeToLive(long timeToLive)
-
-
Method Details
-
isStillValid
Returnstrue
if the given cache entry has not reached the time to live considered by this policy.- Specified by:
isStillValid
in interfaceCacheInvalidationPolicy<EntryType extends CacheEntry<ObjectType>,
ObjectType>
-