public static class Maps.UnboundedCacheStrategy<K,V> extends Maps.CacheStrategy<K,V>
Maps.CacheStrategy
,
Serialized FormCANONICAL, DEFAULT_INITIAL_CAPACITY, DEFAULT_LOAD_FACTOR, NOT_CANONICAL, SOFT, STRONG, WEAK
Constructor and Description |
---|
Maps.UnboundedCacheStrategy()
Constructs an unbounded, non-canonical cache strategy of strongly-
referenced values.
|
Maps.UnboundedCacheStrategy(int initialCapacity,
float loadFactor,
Maps.CacheMap.Canonicity canonicity,
Maps.CacheMap.Strength strength)
Constructs an unbounded cache strategy.
|
Maps.UnboundedCacheStrategy(Maps.CacheMap.Canonicity canonicity,
Maps.CacheMap.Strength strength)
Constructs an unbounded cache strategy.
|
Maps.UnboundedCacheStrategy(Maps.CacheMap.Strength defaultStrength)
Constructs an unbounded, non-canonical cache strategy.
|
createDefaultEntry, createEntry, createEvictedEntry, createSoftEntry, createWeakEntry, entryAccessed, entryAdded, entryChanged, entryEvicted, entryPurged, entryRemoved, getCanonicity, getDefaultStrength, getInitialCapacity, getLoadFactor, mapChanged, mapConstructed
public Maps.UnboundedCacheStrategy()
Maps.CacheStrategy.DEFAULT_INITIAL_CAPACITY
and Maps.CacheStrategy.DEFAULT_LOAD_FACTOR
,
respectively.public Maps.UnboundedCacheStrategy(Maps.CacheMap.Strength defaultStrength)
Maps.CacheStrategy.DEFAULT_INITIAL_CAPACITY
and Maps.CacheStrategy.DEFAULT_LOAD_FACTOR
, respectively.defaultStrength
- The default strength of value references.public Maps.UnboundedCacheStrategy(Maps.CacheMap.Canonicity canonicity, Maps.CacheMap.Strength strength)
Maps.CacheStrategy.DEFAULT_INITIAL_CAPACITY
and
Maps.CacheStrategy.DEFAULT_LOAD_FACTOR
, respectively.canonicity
- Canonicity of this cache.strength
- The strength of value references.public Maps.UnboundedCacheStrategy(int initialCapacity, float loadFactor, Maps.CacheMap.Canonicity canonicity, Maps.CacheMap.Strength strength)
initialCapacity
- The initial capacity (see Maps.CacheStrategy.DEFAULT_INITIAL_CAPACITY
).loadFactor
- The load factor (see Maps.CacheStrategy.DEFAULT_LOAD_FACTOR
).canonicity
- Canonicity of this cache.strength
- The strength of value references.