|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrabbit.cache.utils.CacheConfigurationBase
public abstract class CacheConfigurationBase
A base implementation of cache configuration.
Constructor Summary | |
---|---|
CacheConfigurationBase()
|
Method Summary | |
---|---|
long |
getCacheTime()
Get the number of miliseconds the cache stores things usually. |
long |
getMaxSize()
Get the maximum size for this cache. |
void |
setCacheTime(long newCacheTime)
Set the standard expiry-time for CacheEntries |
void |
setMaxSize(long newMaxSize)
Set the maximum size for this cache. |
void |
setup(Logger logger,
SProperties config)
Set the internal state from the given properties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface rabbit.cache.CacheConfiguration |
---|
getCacheDir |
Constructor Detail |
---|
public CacheConfigurationBase()
Method Detail |
---|
public long getMaxSize()
CacheConfiguration
getMaxSize
in interface CacheConfiguration
public void setMaxSize(long newMaxSize)
CacheConfiguration
setMaxSize
in interface CacheConfiguration
newMaxSize
- the new maximum size for the cache.public long getCacheTime()
CacheConfiguration
getCacheTime
in interface CacheConfiguration
public void setCacheTime(long newCacheTime)
CacheConfiguration
setCacheTime
in interface CacheConfiguration
newCacheTime
- the number of miliseconds to keep objects normally.public void setup(Logger logger, SProperties config)
CacheConfiguration
setup
in interface CacheConfiguration
logger
- the Logger to use for warnings or errorsconfig
- the properties to use
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |