|
Jive Messenger 2.2.2 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jivesoftware.util.CacheManager
public class CacheManager
A centralized, JVM static manager of Jive caches. Caches are essential for scalability.
Constructor Summary | |
---|---|
CacheManager()
|
Method Summary | |
---|---|
static Cache |
getCache(String name)
Returns the cache specified by name. |
static void |
initializeCache(String name,
int defaultMaxCacheSize)
Initialize a cache by name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CacheManager()
Method Detail |
---|
public static void initializeCache(String name, int defaultMaxCacheSize)
Initialize a cache by name.
Caches require initialization before use. Be careful to initialize your cache before using it. Initializing a cache that has already been initialized once does nothing.
The cache manager will check jive module context for overriding defaultMaxCacheSize values. The property names should be "cache.name.size" where 'name' will be the same as the cache name. If the property exists, that value will be used instead of the defaultMaxCacheSize.
name
- the name of the cache to create.defaultMaxCacheSize
- the default max size the cache can grow to, in bytes.public static Cache getCache(String name)
name
- the name of the cache to return.
|
Jive Messenger 2.2.2 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |