public class CacheConfiguration extends HashMap<String,Object>
A configuration identifier can be defined.
It can be used to be the cache unique identifier for clustering process.
This is also used by implementations to associate the cache with a configuration file which overwrite the configuration it contains. This way any cache can be tuned in a particular installation with option specifics to chosen cache implementation.
EntryEvictionConfiguration,
Serialized FormAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
CacheConfiguration()
The default constructor.
|
CacheConfiguration(EntryEvictionConfiguration evictionConfiguration)
Creates CacheConfiguration instance with given eviction configuration.
|
CacheConfiguration(String configurationId) |
CacheConfiguration(String configurationId,
EntryEvictionConfiguration evictionConfiguration)
Creates CacheConfiguration instance with given eviction configuration and id.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getConfigurationId() |
void |
setConfigurationId(String configurationId) |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, valuesequals, hashCode, toStringpublic CacheConfiguration()
public CacheConfiguration(String configurationId)
configurationId - the configuration identifierpublic CacheConfiguration(EntryEvictionConfiguration evictionConfiguration)
evictionConfiguration - describes details of entry eviction method.public CacheConfiguration(String configurationId, EntryEvictionConfiguration evictionConfiguration)
evictionConfiguration - describes details of entry eviction method.configurationId - the configuration identifier.Copyright © 2004–2016 XWiki. All rights reserved.