Class ExpiringCacheEntry<T extends Cacheable>

java.lang.Object
org.deltava.util.cache.CacheEntry<T>
org.deltava.util.cache.ExpiringCacheEntry<T>
Type Parameters:
T - the Cacheable object type
All Implemented Interfaces:
Serializable, Comparable<CacheEntry<T>>
Direct Known Subclasses:
ExpiringCache.ExpiringLocalCacheEntry, ExpiringCache.ExpiringNullCacheEntry

abstract class ExpiringCacheEntry<T extends Cacheable> extends CacheEntry<T>
A cache entry with an expiration date.
Since:
1.0
Version:
7.3
Author:
Luke
  • Constructor Details

    • ExpiringCacheEntry

      protected ExpiringCacheEntry(T entryData)
      Creates a new cache entry.
      Parameters:
      entryData - the entry data
    • ExpiringCacheEntry

      protected ExpiringCacheEntry(Object key)
      Creates a null cache entry.
      Parameters:
      key - the cache key
  • Method Details

    • isExpired

      public boolean isExpired()
      Returns whether the entry has expired.
      Returns:
      TRUE if expired, otherwise FALSE