Interface CacheInvalidationPolicy<EntryType extends CacheEntry<ObjectType>,ObjectType>
- All Known Implementing Classes:
CacheInvalidationPolicyAlwaysValid
,CacheInvalidationPolicyTimeToLive
public interface CacheInvalidationPolicy<EntryType extends CacheEntry<ObjectType>,ObjectType>
Interface for classes that determine whether cache entries are
still valid. Entries that are not valid anymore can be evicted
from the corresponding cache for which this policy is used.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returnstrue
if the given cache entry is still valid according to this cache invalidation policy.
-
Method Details
-
isStillValid
Returnstrue
if the given cache entry is still valid according to this cache invalidation policy.
-