Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.tangosol.net
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 configration settings of the enclosed maps.

Field Summary
`protected BackingMapManagerContext` | `m_context` The BackingMapManagerContext to pass to the enclosed backing maps.
`protected boolean` | `m_fConfigured` Specifies whether or not the enclosing PartitionAwareBackingMap has been configured (initialized).
`protected DefaultConfigurableCacheFactory.CacheInfo` | `m_info` The CacheInfo for the enclosed backing maps.
`protected java.lang.ClassLoader` | `m_loader` The ClassLoader to pass to the enclosed backing maps.
`protected PartitionAwareBackingMap` | `m_pabm` The PartitionAwareBackingMap that uses this manager.
`protected XmlElement` | `m_xmlScheme` The xml configuration for the enclosed backing maps.

Constructor Summary
`protected` | `DefaultConfigurableCacheFactory.PartitionedBackingMapManager(DefaultConfigurableCacheFactory.CacheInfo info, XmlElement xmlScheme, BackingMapManagerContext context, java.lang.ClassLoader loader)`

Method Summary
`java.util.Map` | `instantiateBackingMap(java.lang.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.
`protected void` | `link(PartitionAwareBackingMap pabm)` Link this manager to a PartitionAwareBackingMap that uses it.
`void` | `releaseBackingMap(java.lang.String sName, java.util.Map map)` Release the specified Map that was created using the `AbstractBackingMapManager.instantiateBackingMap(String)` method.

Methods inherited from class com.tangosol.net.AbstractBackingMapManager
`getContext, init`

Field Detail

### m_info

    protected DefaultConfigurableCacheFactory.CacheInfo 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 java.lang.ClassLoader m_loader

  The ClassLoader to pass to the enclosed backing maps.

### m_pabm

    protected PartitionAwareBackingMap m_pabm

  The PartitionAwareBackingMap that uses this manager.

### m_fConfigured

    protected boolean m_fConfigured

  Specifies whether or not the enclosing PartitionAwareBackingMap has been configured (initialized).

Constructor Detail

### DefaultConfigurableCacheFactory.PartitionedBackingMapManager

    protected DefaultConfigurableCacheFactory.PartitionedBackingMapManager(DefaultConfigurableCacheFactory.CacheInfo info,
                                                                           XmlElement xmlScheme,
                                                                           BackingMapManagerContext context,
                                                                           java.lang.ClassLoader loader)

Method Detail

### instantiateBackingMap

    public java.util.Map instantiateBackingMap(java.lang.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.

  Specified by:
    `instantiateBackingMap` in interface `BackingMapManager`
  Specified by:
    `instantiateBackingMap` in class `AbstractBackingMapManager`
  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

### releaseBackingMap

    public void releaseBackingMap(java.lang.String sName,
                                  java.util.Map map)

  Release the specified Map that was created using the `AbstractBackingMapManager.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

### link

    protected void link(PartitionAwareBackingMap pabm)

  Link this manager to a PartitionAwareBackingMap that uses it.

  Parameters:
    `pabm` - PartitionAwareBackingMap that uses this manager

Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2010, Oracle. All rights reserved.