Package org.apache.commons.ognl.internal
Class ReentrantReadWriteLockCache<K,V>
- java.lang.Object
-
- org.apache.commons.ognl.internal.ReentrantReadWriteLockCache<K,V>
-
-
Constructor Summary
Constructors Constructor Description ReentrantReadWriteLockCache()ReentrantReadWriteLockCache(CacheEntryFactory<K,V> cacheEntryFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Vget(K key)intgetSize()Vput(K key, V value)protected booleanshouldCreate(CacheEntryFactory<K,V> cacheEntryFactory, V v)
-
-
-
Constructor Detail
-
ReentrantReadWriteLockCache
public ReentrantReadWriteLockCache()
-
ReentrantReadWriteLockCache
public ReentrantReadWriteLockCache(CacheEntryFactory<K,V> cacheEntryFactory)
-
-
Method Detail
-
get
public V get(K key) throws CacheException
- Specified by:
getin interfaceCache<K,V>- Throws:
CacheException
-
shouldCreate
protected boolean shouldCreate(CacheEntryFactory<K,V> cacheEntryFactory, V v) throws CacheException
- Throws:
CacheException
-
-