Package com.googlecode.concurrentlinkedhashmap
ConcurrentMap
data structure.
Weigher
is a simple interface
for determining how many units of capacity an entry consumes. Depending on
which concrete Weigher class is used, an entry may consume a different amount
of space within the cache. The
Weighers
class provides
utility methods for obtaining the most common kinds of implementations.
EvictionListener
provides the
ability to be notified when an entry is evicted from the map. An eviction
occurs when the entry was automatically removed due to the map exceeding a
capacity threshold. It is not called when an entry was explicitly removed.
The ConcurrentLinkedHashMap
class supplies an efficient, scalable, thread-safe, bounded map. As with the
Java Collections Framework the "Concurrent" prefix is used to
indicate that the map is not governed by a single exclusion lock. The
concurrency characteristics are those provided by the
ConcurrentHashMap
implementation that is
available at runtime.
-
Interface Summary Interface Description ConcurrentLinkedHashMap.Task An operation that can be lazily applied to the page replacement policy.EntryWeigher<K,V> A class that can determine the weight of an entry.EvictionListener<K,V> A listener registered for notification when an entry is evicted.Linked<T extends Linked<T>> An element that is linked on theDeque
.Weigher<V> A class that can determine the weight of a value. -
Class Summary Class Description ConcurrentLinkedHashMap<K,V> A hash table supporting full concurrency of retrievals, adjustable expected concurrency for updates, and a maximum capacity to bound the map by.ConcurrentLinkedHashMap.BoundedEntryWeigher<K,V> A weigher that enforces that the weight falls within a valid range.ConcurrentLinkedHashMap.Builder<K,V> A builder that createsConcurrentLinkedHashMap
instances.ConcurrentLinkedHashMap.DiscardingQueue A queue that discards all additions and is always empty.ConcurrentLinkedHashMap.SerializationProxy<K,V> A proxy that is serialized instead of the map.ConcurrentLinkedHashMap.WeightedValue<V> A value, its weight, and the entry's status.LinkedDeque<E extends Linked<E>> Linked list implementation of theDeque
interface where the link pointers are tightly integrated with the element.Weighers A common set ofWeigher
andEntryWeigher
implementations.Weighers.EntryWeigherView<K,V> -
Enum Summary Enum Description ConcurrentLinkedHashMap.DiscardingListener A listener that ignores all notifications.ConcurrentLinkedHashMap.DrainStatus The draining status of the buffers.Weighers.ByteArrayWeigher Weighers.CollectionWeigher Weighers.IterableWeigher Weighers.ListWeigher Weighers.MapWeigher Weighers.SetWeigher Weighers.SingletonEntryWeigher Weighers.SingletonWeigher