Skip navigation links
com.tangosol.net.partition
Class ObservableSplittingBackingCache.CapacityAwareMap
java.lang.Object
com.tangosol.util.Base
com.tangosol.util.AbstractKeyBasedMap
com.tangosol.net.partition.PartitionSplittingBackingMap
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 classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry |
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 |
m_mapOuter
protected ObservableSplittingBackingCache m_mapOuter
- The ObservableSplittingBackingMap used to call prepareUpdate.
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
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
Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.