CacheFactory
CoherenceCacheFactory
, CountLimitedFactory
, EHCacheFactory
, FIFOHashbeltFactory
, FKCacheFactory
, GigaspacesCacheFactory
, JCacheFactory
, JcsCacheFactory
, LRUHashbeltFactory
, NoCacheFactory
, TimeLimitedFactory
, UnlimitedFactory
public abstract class AbstractCacheFactory extends java.lang.Object implements CacheFactory
CacheFactory
. Users interested in supplying their
own cache implementations might want to extend this class to provide their
own CacheFactory
instance.Constructor | Description |
---|---|
AbstractCacheFactory() |
Modifier and Type | Method | Description |
---|---|---|
Cache |
getCache(java.lang.ClassLoader classLoader) |
Instantiates an instance of the cache implementation this factory is responsible
for using the given classloader.
|
protected boolean |
isInitialized() |
Has the cache factory been initialized?
|
void |
shutdown() |
Allows for cache-specific shutdown operations and resource cleanup.
|
getCacheClassName, getCacheType
protected final boolean isInitialized()
true
if cache factory has been initialized,
false
otherwise.public final Cache getCache(java.lang.ClassLoader classLoader) throws CacheAcquireException
getCache
in interface CacheFactory
classLoader
- A ClassLoader instance.CacheAcquireException
- Problem instantiating a cache instance.public void shutdown()
shutdown
in interface CacheFactory
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com