Top Description Interfaces Classes
[default module]

Package org.apache.groovy.util.concurrent.concurrentlinkedhashmap


This package contains an implementation of a bounded java.util.concurrent.ConcurrentMap data structure.

org.apache.groovy.util.concurrent.concurrentlinkedhashmap.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 org.apache.groovy.util.concurrent.concurrentlinkedhashmap.Weighers class provides utility methods for obtaining the most common kinds of implementations.

org.apache.groovy.util.concurrent.concurrentlinkedhashmap.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 org.apache.groovy.util.concurrent.concurrentlinkedhashmap.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.

See Also
http://code.google.com/p/concurrentlinkedhashmap/

Interface Summary

Modifier and TypeInterface and Description
public interface
EntryWeigher<K, V>

A class that can determine the weight of an entry.

public interface
EvictionListener<K, V>

A listener registered for notification when an entry is evicted.

pack-priv interface
Linked<T extends Linked<T>>

An element that is linked on the Deque.

public interface
Weigher<V>

A class that can determine the weight of a value.

Class Summary

Modifier and TypeClass and Description
public class
ConcurrentLinkedHashMap<
the type of keys maintained by this map
K
,
the type of mapped values
V
>

A hash table supporting full concurrency of retrievals, adjustable expected concurrency for updates, and a maximum capacity to bound the map by.

pack-priv class
LinkedDeque<
the type of elements held in this collection
E extends Linked<E>
>

Linked list implementation of the Deque interface where the link pointers are tightly integrated with the element.

public class
Weighers

A common set of Weigher and EntryWeigher implementations.