Package lu.kbra.pclib.cache
Class TimedCacheList<K,V>
java.lang.Object
lu.kbra.pclib.cache.CacheList<K,V,TimedCacheEntry<V>>
lu.kbra.pclib.cache.TimedCacheList<K,V>
- Direct Known Subclasses:
SchedulerTimedCacheList
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TimedCacheEntry<V>createEntry(V value) booleanisExpired(TimedCacheEntry<V> entry) protected booleanisInvalid(TimedCacheEntry<V> entry) Methods inherited from class lu.kbra.pclib.cache.CacheList
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, forEachEntry, get, getOrPut, getOrPut, getOrPut, keySet, put, putAll, putAll, putIfAbsent, remove, size, values
-
Field Details
-
expirationTimeMillis
protected long expirationTimeMillis
-
-
Constructor Details
-
TimedCacheList
public TimedCacheList(long expirationTimeMillis)
-
-
Method Details
-
isExpired
-
createEntry
- Specified by:
createEntryin classCacheList<K,V, TimedCacheEntry<V>>
-
isInvalid
-