Package org.jppf.caching
Class JPPFLRUMapCache<K,V>
java.lang.Object
org.jppf.caching.AbstractJPPFMapCache<K,V>
org.jppf.caching.JPPFLRUMapCache<K,V>
- Type Parameters:
K- the type of keys.V- the type of values.
- All Implemented Interfaces:
JPPFMapCache<K,V>
A map cache with a LRU eviction policy based on a specified capacity.
- Author:
- Laurent Cohen
-
Field Summary
Fields inherited from class org.jppf.caching.AbstractJPPFMapCache
map -
Constructor Summary
ConstructorsConstructorDescriptionInitialize this cache with an initial capacity of 1024.JPPFLRUMapCache(int capacity) Initialize this cache with the specified capacity. -
Method Summary
-
Constructor Details
-
JPPFLRUMapCache
public JPPFLRUMapCache()Initialize this cache with an initial capacity of 1024. -
JPPFLRUMapCache
public JPPFLRUMapCache(int capacity) Initialize this cache with the specified capacity.- Parameters:
capacity- the capacity of this cache.
-
-
Method Details
-
createMap
Description copied from class:AbstractJPPFMapCacheCreate the backing map.- Specified by:
createMapin classAbstractJPPFMapCache<K,V> - Returns:
- a map for this cache.
-