|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.shiftone.cache.CacheConfiguration
Constructor Summary | |
CacheConfiguration()
create a default cache configuration |
|
CacheConfiguration(java.util.Properties properties)
|
|
CacheConfiguration(java.lang.String fileName)
|
|
CacheConfiguration(java.lang.String[] fileNames)
|
Method Summary | |
Cache |
createConfiguredCache(java.lang.String cacheName)
Create a new cache, using the configured values for the factory, timeout, and maxSize. |
Cache |
createConfiguredCache(java.lang.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. |
Cache |
createConfiguredCacheSafely(java.lang.String cacheName)
Attempt to create a configured cache, as in createConfiguredCache, except if an error occures, a "zero cache" will be returned. |
CacheFactory |
getCacheFactory(java.lang.String factoryName)
Obtain a configured cache factory by it's name. |
CacheFactory |
getConfiguredFactoryForCache(java.lang.String cacheName)
|
int |
getConfiguredMaxSizeForCache(java.lang.String cacheName)
|
long |
getConfiguredTimeoutForCache(java.lang.String cacheName)
|
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CacheConfiguration() throws ConfigurationException
public CacheConfiguration(java.lang.String fileName) throws ConfigurationException
public CacheConfiguration(java.lang.String[] fileNames) throws ConfigurationException
public CacheConfiguration(java.util.Properties properties) throws ConfigurationException
Method Detail |
public CacheFactory getCacheFactory(java.lang.String factoryName) throws ConfigurationException
ConfigurationException
public Cache createConfiguredCache(java.lang.String cacheName) throws ConfigurationException
ConfigurationException
public Cache createConfiguredCache(java.lang.String cacheName, long timeout, int maxSize) throws ConfigurationException
ConfigurationException
public Cache createConfiguredCacheSafely(java.lang.String cacheName)
public CacheFactory getConfiguredFactoryForCache(java.lang.String cacheName) throws ConfigurationException
ConfigurationException
public long getConfiguredTimeoutForCache(java.lang.String cacheName) throws ConfigurationException
ConfigurationException
public int getConfiguredMaxSizeForCache(java.lang.String cacheName) throws ConfigurationException
ConfigurationException
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |