| java.lang.Object org.shiftone.cache.CacheConfiguration
CacheConfiguration | public class CacheConfiguration (Code) | | version: $Revision: 1.13 $ author: Jeff Drost |
Method Summary | |
public Cache | createConfiguredCache(String cacheName) Create a new cache, using the configured values for the
factory, timeout, and maxSize. | public Cache | createConfiguredCache(String cacheName, long timeout, int maxSize) Create a new cache by looking up the configured factory, and then using supplied
name, timeout and max size. | public Cache | createConfiguredCacheSafely(String cacheName) Attempt to create a configured cache, as in createConfiguredCache, except if
an error occures, a "zero cache" will be returned. | public CacheFactory | getCacheFactory(String factoryName) Obtain a configured cache factory by it's name. | public CacheFactory | getConfiguredFactoryForCache(String cacheName) | public int | getConfiguredMaxSizeForCache(String cacheName) | public long | getConfiguredTimeoutForCache(String cacheName) | public void | init(Properties properties, String fileName) | public static void | main(String[] args) |
createConfiguredCache | public Cache createConfiguredCache(String cacheName) throws ConfigurationException(Code) | | Create a new cache, using the configured values for the
factory, timeout, and maxSize.
|
createConfiguredCache | public Cache createConfiguredCache(String cacheName, long timeout, int maxSize) throws ConfigurationException(Code) | | Create a new cache by looking up the configured factory, and then using supplied
name, timeout and max size. Method requested by Neville.
|
createConfiguredCacheSafely | public Cache createConfiguredCacheSafely(String cacheName)(Code) | | Attempt to create a configured cache, as in createConfiguredCache, except if
an error occures, a "zero cache" will be returned. In other words, any exception
is supressed, and the failure is hidden from the application (except there won't
be any caching).
|
|
|