Class 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.PropertyChangeListener
    Runtime configuration as being used by the CacheManager
    • Constructor Detail

      • RuntimeCfg

        public RuntimeCfg​(CacheManager cacheManager,
                          java.lang.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 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:
        propertyChange in interface java.beans.PropertyChangeListener
        Parameters:
        evt - the PropertyChangeEvent
      • hasOffHeapPool

        public boolean hasOffHeapPool()
        Checks whether the CacheManager uses a OffHeapPool
        Returns:
        true if using one, false otherwise