|
Wildfire 3.0.1 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
Centralized management of caches. Caches are essential for performance and scalability.
Cache| Constructor Summary | |
|---|---|
CacheManager()
|
|
| Method Summary | |
|---|---|
static Cache |
getCache(String name)
Returns the cache specified by name. |
static Collection<Cache> |
getCaches()
Returns the list of caches being managed by this manager. |
static Cache |
initializeCache(String name,
String propertiesName,
int size)
Initializes a cache given it's name and max size. |
static Cache |
initializeCache(String name,
String propertiesName,
int size,
long expirationTime)
Initializes a cache given it's name, max size, and expiration time. |
| 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 Cache initializeCache(String name,
String propertiesName,
int size)
The size and expiration time for the cache can be overridden by setting Jive properties in the format:
name - the name of the cache to initialize.propertiesName - the properties file name prefix where settings for the cache
are stored. The name is will be prefixed by "cache." before it is
looked up.size - the size the cache can grow to, in bytes.
public static Cache initializeCache(String name,
String propertiesName,
int size,
long expirationTime)
The size and expiration time for the cache can be overridden by setting Jive properties in the format:
name - the name of the cache to initialize.propertiesName - the properties file name prefix where settings for the cache are
stored. The name is will be prefixed by "cache." before it is
looked up.size - the size the cache can grow to, in bytes.expirationTime - the default max lifetime of the cache, in milliseconds.public static Cache getCache(String name)
name - the name of the cache to return.
public static Collection<Cache> getCaches()
|
Wildfire 3.0.1 Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||