Package net.sf.ehcache.config
Class Configuration.RuntimeCfg
- java.lang.Object
-
- net.sf.ehcache.config.Configuration.RuntimeCfg
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener,java.util.EventListener
- Enclosing class:
- Configuration
public class Configuration.RuntimeCfg extends java.lang.Object implements java.beans.PropertyChangeListenerRuntime configuration as being used by the CacheManager
-
-
Constructor Summary
Constructors Constructor Description RuntimeCfg(CacheManager cacheManager, java.lang.String fallbackName)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallowsDynamicCacheConfig()java.lang.StringgetCacheManagerName()ConfigurationgetConfiguration()TransactionManagerLookupgetTransactionManagerLookup()booleanhasOffHeapPool()Checks whether the CacheManager uses a OffHeapPoolbooleanisNamed()booleanisTerracottaRejoin()voidpropertyChange(java.beans.PropertyChangeEvent evt)Handles changes to the Configuration this RuntimeCfg backsvoidremoveCache(CacheConfiguration cacheConfiguration)Removes a cache from the known list
-
-
-
Constructor Detail
-
RuntimeCfg
public RuntimeCfg(CacheManager cacheManager, java.lang.String fallbackName)
Constructor- Parameters:
cacheManager- the cacheManager instance using this configfallbackName- the fallbackName in case the configuration doesn't declare an explicit name
-
-
Method Detail
-
getCacheManagerName
public java.lang.String getCacheManagerName()
- Returns:
- the CacheManager's name
-
allowsDynamicCacheConfig
public boolean allowsDynamicCacheConfig()
- Returns:
- Whether dynamic config changes are available
-
isNamed
public boolean isNamed()
- Returns:
- Whether the CacheManager is explicitly named
-
getConfiguration
public Configuration getConfiguration()
- Returns:
- the underlying Configuration instance
-
isTerracottaRejoin
public boolean isTerracottaRejoin()
- Returns:
- Whether terracotta clustering is being used and rejoin is enabled
-
getTransactionManagerLookup
public TransactionManagerLookup getTransactionManagerLookup()
- Returns:
- The transactionManagerLookup instance
-
removeCache
public void removeCache(CacheConfiguration cacheConfiguration)
Removes a cache from the known list- Parameters:
cacheConfiguration- the cacheConfiguration to be removed
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent evt)
Handles changes to the Configuration this RuntimeCfg backs- Specified by:
propertyChangein interfacejava.beans.PropertyChangeListener- Parameters:
evt- the PropertyChangeEvent
-
hasOffHeapPool
public boolean hasOffHeapPool()
Checks whether the CacheManager uses a OffHeapPool- Returns:
- true if using one, false otherwise
-
-