protected class DatabaseCacheImpl.ChronicleCache extends LinkedHashMap<Object,ChronicleImpl>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
ChronicleCache(int capacity,
float loadFactor,
DatabaseCacheImpl callback)
Construct a chronicle cache.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
removeEldestEntry(Map.Entry<Object,ChronicleImpl> eldest) |
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
public ChronicleCache(int capacity, float loadFactor, DatabaseCacheImpl callback)
capacity
- a positive numberloadFactor
- a number between 0 and 1callback
- the cache object on which to invoked DatabaseCacheImpl.removed(ChronicleImpl)
protected boolean removeEldestEntry(Map.Entry<Object,ChronicleImpl> eldest)
removeEldestEntry
in class LinkedHashMap<Object,ChronicleImpl>
Copyright © 2017. All rights reserved.