Class CacheInfo
java.lang.Object
org.jivesoftware.openfire.container.CacheInfo
Configuration to use when creating caches. Caches can be used when running stand alone or when
running in a cluster. When running in a cluster a few extra parameters might be needed. Read
getParams() for more information.- Author:
- Gaston Dombiak
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a map with the configuration to use for the cache.getType()
-
Constructor Details
-
CacheInfo
Creates the configuration to use for the specified cache. Caches can be used when running as a standalone application or when running in a cluster. When running in a cluster a few extra configuration are going to be needed. ReadgetParams()for more information.- Parameters:
cacheName- name of the cache.type- type of cache to use when running in a cluster. Ignored when running as standalone.params- extra parameters that define cache properties like max size or expiration.
-
-
Method Details
-
getCacheName
-
getType
-
getParams
Returns a map with the configuration to use for the cache. When running standalone the following properties are required.- back-size-high - Maximum size of the cache. Size is in bytes. Zero means that there is no limit.
- back-expiry - minutes, hours or days before content is expired. 10m, 12h or 2d. Zero means never.
- back-size-low - Size in byte of the cache after a clean up. Use zero to place no limit.
- Returns:
- map with the configuration to use for the cache.
-