Package mondrian.rolap.cache
Class SoftSmartCache<K,V>
java.lang.Object
mondrian.rolap.cache.SmartCacheImpl<K,V>
mondrian.rolap.cache.SoftSmartCache<K,V>
- All Implemented Interfaces:
SmartCache<K,
V>
An implementation of
SmartCacheImpl
which uses a
ReferenceMap
as a backing object. Both the key
and the value are soft references, because of their
cyclic nature.
This class does not enforce any synchronization, because
this is handled by SmartCacheImpl
.
- Since:
- Nov 3, 2005
- Author:
- av, lboudreau
-
Nested Class Summary
Nested classes/interfaces inherited from interface mondrian.rolap.cache.SmartCache
SmartCache.SmartCacheTask<K,
V> -
Constructor Summary
-
Method Summary
-
Constructor Details
-
SoftSmartCache
public SoftSmartCache()
-
-
Method Details
-
putImpl
- Specified by:
putImpl
in classSmartCacheImpl<K,
V>
-
getImpl
- Specified by:
getImpl
in classSmartCacheImpl<K,
V>
-
removeImpl
- Specified by:
removeImpl
in classSmartCacheImpl<K,
V>
-
clearImpl
public void clearImpl()- Specified by:
clearImpl
in classSmartCacheImpl<K,
V>
-
sizeImpl
public int sizeImpl()- Specified by:
sizeImpl
in classSmartCacheImpl<K,
V>
-
iteratorImpl
Description copied from class:SmartCacheImpl
Must provide an iterator on the contents of the cache. It does not need to be thread safe because we will handle that inSmartCacheImpl
.- Specified by:
iteratorImpl
in classSmartCacheImpl<K,
V>
-