public class Configuration.RuntimeCfg
extends java.lang.Object
implements java.beans.PropertyChangeListener
Modifier and Type | Field and Description |
---|---|
private boolean |
allowsSizeBasedTunings |
private CacheManager |
cacheManager |
private java.lang.String |
cacheManagerName |
private boolean |
named |
private TransactionManagerLookup |
transactionManagerLookup |
Constructor and Description |
---|
RuntimeCfg(CacheManager cacheManager,
java.lang.String fallbackName)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
allowsDynamicCacheConfig() |
java.lang.String |
getCacheManagerName() |
Configuration |
getConfiguration() |
TransactionManagerLookup |
getTransactionManagerLookup() |
boolean |
hasOffHeapPool()
Checks whether the CacheManager uses a OffHeapPool
|
private boolean |
hasTerracottaClusteredCaches() |
boolean |
isNamed() |
boolean |
isTerracottaRejoin() |
void |
propertyChange(java.beans.PropertyChangeEvent evt)
Handles changes to the Configuration this RuntimeCfg backs
|
void |
removeCache(CacheConfiguration cacheConfiguration)
Removes a cache from the known list
|
private final CacheManager cacheManager
private volatile java.lang.String cacheManagerName
private final boolean named
private TransactionManagerLookup transactionManagerLookup
private boolean allowsSizeBasedTunings
public RuntimeCfg(CacheManager cacheManager, java.lang.String fallbackName)
cacheManager
- the cacheManager instance using this configfallbackName
- the fallbackName in case the configuration doesn't declare an explicit namepublic java.lang.String getCacheManagerName()
public boolean allowsDynamicCacheConfig()
public boolean isNamed()
public Configuration getConfiguration()
public boolean isTerracottaRejoin()
private boolean hasTerracottaClusteredCaches()
public TransactionManagerLookup getTransactionManagerLookup()
public void removeCache(CacheConfiguration cacheConfiguration)
cacheConfiguration
- the cacheConfiguration to be removedpublic void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
evt
- the PropertyChangeEventpublic boolean hasOffHeapPool()