public class IndexedDiskCacheManager extends AbstractDiskCacheManager
Modifier and Type | Method and Description |
---|---|
<K,V> IndexedDiskCache<K,V> |
getCache(IndexedDiskCacheAttributes cacheAttributes)
Get an IndexedDiskCache for the supplied attributes.
|
<K,V> 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
|
getCacheEventLogger, getElementSerializer, setCacheEventLogger, setElementSerializer
public static IndexedDiskCacheManager getInstance(IndexedDiskCacheAttributes defaultCacheAttributes, ICacheEventLogger cacheEventLogger, IElementSerializer elementSerializer)
defaultCacheAttributes
- If the instance has not yet been created, it will be
initialized with this set of default attributes.cacheEventLogger
- elementSerializer
- public <K,V> IndexedDiskCache<K,V> getCache(String cacheName)
cacheName
- Name that will be used when creating attributes.public <K,V> IndexedDiskCache<K,V> getCache(IndexedDiskCacheAttributes cacheAttributes)
cacheAttributes
- Attributes the cache should have.Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.