org.xwiki.cache.config
Class CacheConfiguration

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<String,Object>
          extended by org.xwiki.cache.config.CacheConfiguration
All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>

public class CacheConfiguration
extends HashMap<String,Object>

Contains all informations used to create the cache.

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.

Version:
$Id$
See Also:
EntryEvictionConfiguration, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
CacheConfiguration()
           
 
Method Summary
 String getConfigurationId()
           
 void setConfigurationId(String configurationId)
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

CacheConfiguration

public CacheConfiguration()
Method Detail

setConfigurationId

public void setConfigurationId(String configurationId)
Parameters:
configurationId - the configuration identifier.

getConfigurationId

public String getConfigurationId()
Returns:
the configuration identifier.


Copyright © 2004-2012 XWiki. All Rights Reserved.