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
A cache entry with an expiration date.
- Since:
- 1.0
- Version:
- 7.3
- Author:
- Luke
-
Field Summary
Fields inherited from class org.deltava.util.cache.CacheEntry
_createExpire -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedExpiringCacheEntry(Object key) Creates a null cache entry.protectedExpiringCacheEntry(T entryData) Creates a new cache entry. -
Method Summary
-
Constructor Details
-
ExpiringCacheEntry
Creates a new cache entry.- Parameters:
entryData- the entry data
-
ExpiringCacheEntry
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
-