Interface CacheInvalidationPolicy<EntryType extends CacheEntry<ObjectType>,ObjectType>

All Known Implementing Classes:
CacheInvalidationPolicyAlwaysValid

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 Type
    Method
    Description
    boolean
    Returns true if the given cache entry is still valid according to this cache invalidation policy.
  • Method Details

    • isStillValid

      boolean isStillValid(EntryType e)
      Returns true if the given cache entry is still valid according to this cache invalidation policy.