Interface AuxiliaryCacheFactory
- All Known Implementing Classes:
- AbstractAuxiliaryCacheFactory,- BlockDiskCacheFactory,- HSQLDiskCacheFactory,- IndexedDiskCacheFactory,- JDBCDiskCacheFactory,- LateralTCPCacheFactory,- MySQLDiskCacheFactory,- RemoteCacheFactory,- RemoteHttpCacheFactory
public interface AuxiliaryCacheFactory
All auxiliary caches must have a factory that the cache configurator can use to create instances.
- 
Method SummaryModifier and TypeMethodDescription<K,V> AuxiliaryCache<K, V> createCache(AuxiliaryCacheAttributes attr, ICompositeCacheManager cacheMgr, ICacheEventLogger cacheEventLogger, IElementSerializer elementSerializer) Creates an auxiliary using the supplied attributes.default voiddispose()Dispose of this factory, clean up shared resourcesgetName()Gets the name attribute of the AuxiliaryCacheFactory objectdefault voidInitialize this factoryvoidSets the name attribute of the AuxiliaryCacheFactory object
- 
Method Details- 
createCache<K,V> AuxiliaryCache<K,V> createCache(AuxiliaryCacheAttributes attr, ICompositeCacheManager cacheMgr, ICacheEventLogger cacheEventLogger, IElementSerializer elementSerializer) throws Exception Creates an auxiliary using the supplied attributes. Adds it to the composite cache manager.- Parameters:
- attr-
- 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-
- Returns:
- AuxiliaryCache
- Throws:
- Exception- if cache instance could not be created
 
- 
initializeInitialize this factory
- 
disposeDispose of this factory, clean up shared resources
- 
setNameSets the name attribute of the AuxiliaryCacheFactory object- Parameters:
- s- The new name value
 
- 
getNameGets the name attribute of the AuxiliaryCacheFactory object- Returns:
- The name value
 
 
-