ehcache

net.sf.ehcache.config
Class Configuration.RuntimeCfg

java.lang.Object
  extended by net.sf.ehcache.config.Configuration.RuntimeCfg
All Implemented Interfaces:
PropertyChangeListener, EventListener
Enclosing class:
Configuration

public class Configuration.RuntimeCfg
extends Object
implements PropertyChangeListener

Runtime configuration as being used by the CacheManager


Constructor Summary
Configuration.RuntimeCfg(CacheManager cacheManager, String fallbackName)
          Constructor
 
Method Summary
 boolean allowsDynamicCacheConfig()
           
 String getCacheManagerName()
           
 Configuration getConfiguration()
           
 TransactionManagerLookup getTransactionManagerLookup()
           
 boolean hasOffHeapPool()
          Checks whether the CacheManager uses a OffHeapPool
 boolean isNamed()
           
 boolean isTerracottaRejoin()
           
 void propertyChange(PropertyChangeEvent evt)
          Handles changes to the Configuration this RuntimeCfg backs
 void removeCache(CacheConfiguration cacheConfiguration)
          Removes a cache from the known list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Configuration.RuntimeCfg

public Configuration.RuntimeCfg(CacheManager cacheManager,
                                String fallbackName)
Constructor

Parameters:
cacheManager - the cacheManager instance using this config
fallbackName - the fallbackName in case the configuration doesn't declare an explicit name
Method Detail

getCacheManagerName

public 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(PropertyChangeEvent evt)
Handles changes to the Configuration this RuntimeCfg backs

Specified by:
propertyChange in interface PropertyChangeListener
Parameters:
evt - the PropertyChangeEvent

hasOffHeapPool

public boolean hasOffHeapPool()
Checks whether the CacheManager uses a OffHeapPool

Returns:
true if using one, false otherwise

ehcache

Copyright 2001-2015, Terracotta, Inc.