org.apache.jcs.auxiliary.disk.indexed
Class IndexedDiskCacheManager

java.lang.Object
  extended by org.apache.jcs.auxiliary.disk.AbstractDiskCacheManager
      extended by org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheManager
All Implemented Interfaces:
AuxiliaryCacheManager

public class IndexedDiskCacheManager
extends AbstractDiskCacheManager

Cache manager for IndexedDiskCaches. This manages the instances of the disk cache.


Method Summary
<K extends Serializable,V extends Serializable>
IndexedDiskCache<K,V>
getCache(IndexedDiskCacheAttributes cacheAttributes)
          Get an IndexedDiskCache for the supplied attributes.
<K extends Serializable,V extends Serializable>
IndexedDiskCache<K,V>
getCache(String cacheName)
          Gets an IndexedDiskCache for the supplied name using the default attributes.
static IndexedDiskCacheManager getInstance(IndexedDiskCacheAttributes defaultCacheAttributes, ICacheEventLogger cacheEventLogger, IElementSerializer elementSerializer)
          Gets the singleton instance of the manager
 
Methods inherited from class org.apache.jcs.auxiliary.disk.AbstractDiskCacheManager
getCacheEventLogger, getElementSerializer, setCacheEventLogger, setElementSerializer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static IndexedDiskCacheManager getInstance(IndexedDiskCacheAttributes defaultCacheAttributes,
                                                  ICacheEventLogger cacheEventLogger,
                                                  IElementSerializer elementSerializer)
Gets the singleton instance of the manager

Parameters:
defaultCacheAttributes - If the instance has not yet been created, it will be initialized with this set of default attributes.
cacheEventLogger -
elementSerializer -
Returns:
The instance value

getCache

public <K extends Serializable,V extends Serializable> IndexedDiskCache<K,V> getCache(String cacheName)
Gets an IndexedDiskCache for the supplied name using the default attributes.

Parameters:
cacheName - Name that will be used when creating attributes.
Returns:
A cache.

getCache

public <K extends Serializable,V extends Serializable> IndexedDiskCache<K,V> getCache(IndexedDiskCacheAttributes cacheAttributes)
Get an IndexedDiskCache for the supplied attributes. Will provide an existing cache for the name attribute if one has been created, or will create a new cache.

Parameters:
cacheAttributes - Attributes the cache should have.
Returns:
A cache, either from the existing set or newly created.


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