Class BoundedIntrusiveMappingCache<KEY_TYPE,MAPPING_TYPE extends com.illumon.util.datastructures.cache.BoundedIntrusiveMappingCache.Mapping<KEY_TYPE,MAPPING_TYPE>>
java.lang.Object
com.illumon.util.datastructures.cache.BoundedIntrusiveMappingCache<KEY_TYPE,MAPPING_TYPE>
- Direct Known Subclasses:
BoundedIntrusiveMappingCache.ByteImpl,BoundedIntrusiveMappingCache.CharacterImpl,BoundedIntrusiveMappingCache.DoubleImpl,BoundedIntrusiveMappingCache.FifoIntegerImpl,BoundedIntrusiveMappingCache.FloatImpl,BoundedIntrusiveMappingCache.IntegerImpl,BoundedIntrusiveMappingCache.LongImpl,BoundedIntrusiveMappingCache.ObjectImpl,BoundedIntrusiveMappingCache.ShortImpl
public abstract class BoundedIntrusiveMappingCache<KEY_TYPE,MAPPING_TYPE extends com.illumon.util.datastructures.cache.BoundedIntrusiveMappingCache.Mapping<KEY_TYPE,MAPPING_TYPE>>
extends Object
An LRU mapping cache that relies on an queue of intrusively doubly-linked nodes for keeping track of
eviction policy details.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classMapping cache forObject->intmappings, with FIFO eviction.static classstatic classMapping cache forObject->intmappings, with LRU eviction.static classstatic classstatic classstatic interfacestatic interfacestatic interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetCacheDeclarationType(Class<?> keyType, Class<?> valueType) static StringgetCacheInitializer(Class<?> valueType, String maximumCachedMappingsString)
-
Method Details
-
getCacheDeclarationType
-
getCacheInitializer
-