org.apache.jcs.auxiliary
Interface AuxiliaryCacheFactory

All Known Implementing Classes:
BlockDiskCacheFactory, FileDiskCacheFactory, HSQLDiskCacheFactory, IndexedDiskCacheFactory, JDBCDiskCacheFactory, LateralCacheAbstractFactory, 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
<K extends Serializable,V extends Serializable>
AuxiliaryCache<K,V>
createCache(AuxiliaryCacheAttributes attr, ICompositeCacheManager cacheMgr, ICacheEventLogger cacheEventLogger, IElementSerializer elementSerializer)
          Creates an auxiliary using the supplied attributes.
 String getName()
          Gets the name attribute of the AuxiliaryCacheFactory object
 void setName(String s)
          Sets the name attribute of the AuxiliaryCacheFactory object
 

Method Detail

createCache

<K extends Serializable,V extends Serializable> AuxiliaryCache<K,V> createCache(AuxiliaryCacheAttributes attr,
                                                                                ICompositeCacheManager cacheMgr,
                                                                                ICacheEventLogger cacheEventLogger,
                                                                                IElementSerializer elementSerializer)
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 nonsingleton. Also, it makes it easier to test.
cacheEventLogger -
elementSerializer -
Returns:
AuxiliaryCache

setName

void setName(String s)
Sets the name attribute of the AuxiliaryCacheFactory object

Parameters:
s - The new name value

getName

String getName()
Gets the name attribute of the AuxiliaryCacheFactory object

Returns:
The name value


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.