Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


com.tangosol.net.partition
Class ObservableSplittingBackingCache.CapacityAwareMap

java.lang.Object
  extended by com.tangosol.util.Base
      extended by com.tangosol.util.AbstractKeyBasedMap
          extended by com.tangosol.net.partition.PartitionSplittingBackingMap
              extended by com.tangosol.net.partition.ObservableSplittingBackingCache.CapacityAwareMap

All Implemented Interfaces:
com.oracle.common.base.Disposable, PartitionAwareBackingMap, java.util.Map
Enclosing class:
ObservableSplittingBackingCache

protected static class ObservableSplittingBackingCache.CapacityAwareMap
extends PartitionSplittingBackingMap

A subclass of PartitionSplittingBackingMap which allows an injected instance of ObservableSplittingBackingMap to be called immediately before inserting a value(s) in a partition map.

This class is intended for internal use only facilitating efficient use of PartitionSplittingBackingMap, by reducing the number of times the partitioned backing map is determined.

See Also:
ObservableSplittingBackingCache.prepareUpdate(java.util.Map, java.util.Map)

Nested Class Summary

 

Nested classes/interfaces inherited from class com.tangosol.net.partition.PartitionSplittingBackingMap
PartitionSplittingBackingMap.AggregatingCacheStatistics, PartitionSplittingBackingMap.MapArray, PartitionSplittingBackingMap.MaskedPartitionMap, PartitionSplittingBackingMap.PartitionedIterator

 

Nested classes/interfaces inherited from class com.tangosol.util.AbstractKeyBasedMap
AbstractKeyBasedMap.EntrySet, AbstractKeyBasedMap.KeySet, AbstractKeyBasedMap.ValuesCollection

 

Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry

 

Field Summary
protected  ObservableSplittingBackingCache m_mapOuter
          The ObservableSplittingBackingMap used to call prepareUpdate.

 

Constructor Summary
protected ObservableSplittingBackingCache.CapacityAwareMap(BackingMapManager bmm, java.lang.String sName)
          Create a CapacityAwareMap.

 

Method Summary
protected  void bind(ObservableSplittingBackingCache mapOuter)
          Bind to the given ObservableSplittingBackingMap instance.
protected  void putAllInternal(java.util.Map mapPart, java.util.Map map)
          Put all entries in mapUpdate into the provided map.
protected  java.lang.Object putInternal(java.util.Map mapPart, java.lang.Object oKey, java.lang.Object oValue)
          Put the key and value into a map representing a given partition.

 

Methods inherited from class com.tangosol.net.partition.PartitionSplittingBackingMap
clear, containsKey, createPartition, destroyPartition, dispose, get, getBackingMap, getBackingMapManager, getCacheStatistics, getContext, getMapArray, getName, getPartitionMap, getPartitionMap, isEmpty, isEmpty, isStrict, iterateKeys, iterateKeys, makeName, put, putAll, remove, reportMissingPartition, setStrict, size, size, toString, toString

 

Methods inherited from class com.tangosol.util.AbstractKeyBasedMap
clone, containsValue, entrySet, equals, getAll, hashCode, instantiateEntrySet, instantiateKeySet, instantiateValues, keySet, removeBlind, values

 

Methods inherited from interface java.util.Map
containsValue, entrySet, equals, hashCode, keySet, values

 

Field Detail

m_mapOuter

protected ObservableSplittingBackingCache m_mapOuter
The ObservableSplittingBackingMap used to call prepareUpdate.

Constructor Detail

ObservableSplittingBackingCache.CapacityAwareMap

protected ObservableSplittingBackingCache.CapacityAwareMap(BackingMapManager bmm,
                                                           java.lang.String sName)
Create a CapacityAwareMap.
Parameters:
bmm - a BackingMapManager that knows how to create and release the backing maps that this PartitionSplittingBackingMap is responsible for
sName - the cache name for which this backing map exists

Method Detail

putInternal

protected java.lang.Object putInternal(java.util.Map mapPart,
                                       java.lang.Object oKey,
                                       java.lang.Object oValue)
Put the key and value into a map representing a given partition.
Overrides:
putInternal in class PartitionSplittingBackingMap
Parameters:
mapPart - a partition map
oKey - oKey with which the specified value is to be associated
oValue - oValue to be associated with the specified oKey
Returns:
previous value associated with specified key, or null if there was no mapping for the key

putAllInternal

protected void putAllInternal(java.util.Map mapPart,
                              java.util.Map map)
Put all entries in mapUpdate into the provided map.
Overrides:
putAllInternal in class PartitionSplittingBackingMap
Parameters:
mapPart - a partition map
map - the Map containing the key/value pairings to put into mapPart

bind

protected void bind(ObservableSplittingBackingCache mapOuter)
Bind to the given ObservableSplittingBackingMap instance. This instance will have prepareUpdate invoked immediately prior to an insert to a partition map.
Parameters:
mapOuter - the map used to call prepareUpdate

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.