public class IndexedDiskCacheFactory extends Object implements AuxiliaryCacheFactory
| Constructor and Description |
|---|
IndexedDiskCacheFactory() |
| Modifier and Type | Method and Description |
|---|---|
<K,V> AuxiliaryCache<K,V> |
createCache(AuxiliaryCacheAttributes iaca,
ICompositeCacheManager cacheMgr,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
Get an instance of the IndexDiskCacheManager for the attributes and then get an
IndexedDiskCache from the manager.
|
String |
getName()
Gets the name attribute of the DiskCacheFactory object
|
void |
setName(String name)
Sets the name attribute of the DiskCacheFactory object
|
public <K,V> AuxiliaryCache<K,V> createCache(AuxiliaryCacheAttributes iaca, ICompositeCacheManager cacheMgr, ICacheEventLogger cacheEventLogger, IElementSerializer elementSerializer)
The manager is a singleton.
One disk cache is returned per region from the manager.
createCache in interface AuxiliaryCacheFactoryiaca - cacheMgr - This allows auxiliaries to reference the manager without assuming that it is
a singleton. This will allow JCS to be a non-singleton. Also, it makes it easier to
test.cacheEventLogger - elementSerializer - public String getName()
getName in interface AuxiliaryCacheFactorypublic void setName(String name)
setName in interface AuxiliaryCacheFactoryname - The new name valueCopyright © 2002–2015 The Apache Software Foundation. All rights reserved.