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 Summary
Modifier and TypeMethodDescription<K,
V> AuxiliaryCache<K, V> createCache
(AuxiliaryCacheAttributes attr, ICompositeCacheManager cacheMgr, ICacheEventLogger cacheEventLogger, IElementSerializer elementSerializer) Creates an auxiliary using the supplied attributes.default void
dispose()
Dispose of this factory, clean up shared resourcesgetName()
Gets the name attribute of the AuxiliaryCacheFactory objectdefault void
Initialize this factoryvoid
Sets 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
-
initialize
Initialize this factory -
dispose
Dispose of this factory, clean up shared resources -
setName
Sets the name attribute of the AuxiliaryCacheFactory object- Parameters:
s
- The new name value
-
getName
Gets the name attribute of the AuxiliaryCacheFactory object- Returns:
- The name value
-