Class DefaultConfigurableCacheFactory.PartitionedBackingMapManager

java.lang.Object
com.tangosol.util.Base
com.tangosol.net.AbstractBackingMapManager
com.tangosol.net.DefaultConfigurableCacheFactory.PartitionedBackingMapManager
All Implemented Interfaces:
BackingMapManager
Enclosing class:
DefaultConfigurableCacheFactory

protected class DefaultConfigurableCacheFactory.PartitionedBackingMapManager extends AbstractBackingMapManager
BackingMapManager implementation used by PartitionAwareBackingMap(s) to lazily configure the enclosing PABM based on the configuration settings of the enclosed maps.
  • Field Details

    • m_info

      The CacheInfo for the enclosed backing maps.
    • m_xmlScheme

      protected XmlElement m_xmlScheme
      The xml configuration for the enclosed backing maps.
    • m_context

      protected BackingMapManagerContext m_context
      The BackingMapManagerContext to pass to the enclosed backing maps.
    • m_loader

      protected ClassLoader m_loader
      The ClassLoader to pass to the enclosed backing maps.
  • Constructor Details

  • Method Details

    • instantiateBackingMap

      public Map instantiateBackingMap(String sName)
      Instantiate a [thread safe] Map that should be used by a CacheService to store cached values for a NamedCache with the specified name.

      If the contents of the Map can be modified by anything other than the CacheService itself (e.g. if the Map automatically expires its entries periodically or size-limits its contents), then the returned object must implement the ObservableMap interface.

      Parameters:
      sName - the name of the NamedCache for which this backing map is being created
      Returns:
      an object implementing the Map interface that will provide backing storage for the specified cache name
    • isBackingMapPersistent

      public boolean isBackingMapPersistent(String sName)
      Determine if the contents of the Map that is used by a CacheService to store cached values for a NamedCache with the specified name should be persisted.
      Parameters:
      sName - the name of the NamedCache
      Returns:
      true if the CacheService should persist the backing storage of the specified NamedCache
    • isBackingMapSlidingExpiry

      public boolean isBackingMapSlidingExpiry(String sName)
      Determine if the Map that is used by a CacheService to store cached values for a NamedCache with specified name enables the sliding expiry - the expiry delay being extended by the read operations.
      Parameters:
      sName - the name of the NamedCache
      Returns:
      true if the backing map of the specified NamedCache enables the sliding expiry
    • getStorageAccessAuthorizer

      public StorageAccessAuthorizer getStorageAccessAuthorizer(String sName)
      Determine the StorageAccessAuthorizer that is used by a CacheService to secure access to the NamedCache with the specified name.
      Parameters:
      sName - the name of the NamedCache
      Returns:
      the StorageAccessAuthorizer or null if the authorizer is not configured
    • releaseBackingMap

      public void releaseBackingMap(String sName, Map map)
      Release the specified Map that was created using the BackingMapManager.instantiateBackingMap(String) method. This method is invoked by the CacheService when the CacheService no longer requires the specified Map object.
      Specified by:
      releaseBackingMap in interface BackingMapManager
      Overrides:
      releaseBackingMap in class AbstractBackingMapManager
      Parameters:
      sName - the name of the NamedCache for which the specified Map object has acted as the backing map
      map - the Map object that is being released
    • getCacheFactory

      public DefaultConfigurableCacheFactory getCacheFactory()
      Obtain the "container" DefaultConfigurableCacheFactory that created this manager and which this manager is bound to.
      Returns:
      the DefaultConfigurableCacheFactory that created this manager