protected static class ObservableSplittingBackingCache.CapacityAwareMap extends PartitionSplittingBackingMap
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.
PartitionSplittingBackingMap.AggregatingCacheStatistics, PartitionSplittingBackingMap.KeySet, PartitionSplittingBackingMap.MapArray, PartitionSplittingBackingMap.MaskedPartitionMap, PartitionSplittingBackingMap.PartitionedIteratorAbstractKeyBasedMap.DeferredCacheEvent<K,V>, AbstractKeyBasedMap.EntrySet, AbstractKeyBasedMap.ValuesCollectionBase.LoggingWriter, Base.StackFrame| Modifier and Type | Field and Description |
|---|---|
protected ObservableSplittingBackingCache |
m_mapOuter
The ObservableSplittingBackingMap used to call prepareUpdate.
|
| Modifier | Constructor and Description |
|---|---|
protected |
CapacityAwareMap(BackingMapManager bmm, String sName)
Create a CapacityAwareMap.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
bind(ObservableSplittingBackingCache mapOuter)
Bind to the given
ObservableSplittingBackingMap instance. |
protected void |
putAllInternal(Map mapPart, Map map)
Put all entries in mapUpdate into the provided map.
|
protected Object |
putInternal(Map mapPart, Object oKey, Object oValue)
Put the key and value into a map representing a given partition.
|
clear, containsKey, createPartition, destroyPartition, dispose, get, getBackingMap, getBackingMapManager, getCacheStatistics, getContext, getMapArray, getName, getPartitionMap, getPartitionMap, instantiateKeySet, isEmpty, isEmpty, isStrict, iterateKeys, iterateKeys, makeName, put, putAll, remove, removeBlind, reportMissingPartition, setStrict, size, size, toString, toStringclone, containsValue, entrySet, equals, getAll, hashCode, instantiateEntrySet, instantiateValues, keySet, valuesazzert, azzert, azzert, azzertFailed, breakLines, breakLines, capitalize, checkNotEmpty, checkNotNull, checkRange, computeSafeWaitTime, decimalValue, dup, dup, ensureBigDecimal, ensureClassLoader, ensureRuntimeException, ensureRuntimeException, equals, equalsDeep, err, err, err, err, err, escape, formatDateTime, getCallerStackFrame, getCommonMonitor, getCommonMonitor, getCommonMonitor, getContextClassLoader, getContextClassLoader, getDeepMessage, getErr, getLastSafeTimeMillis, getLog, getMaxDecDigits, getMaxHexDigits, getOriginalException, getOut, getRandom, getRandomBinary, getRandomBinary, getRandomString, getSafeTimeMillis, getStackFrame, getStackFrames, getStackTrace, getStackTrace, getThreadFactory, getTimeZone, getUpTimeMillis, hashCode, hexValue, indentString, indentString, isDecimal, isHex, isLogEcho, isOctal, log, log, log, log, log, makeInteger, makeLong, makeThread, mod, mod, octalValue, out, out, out, out, out, pad, parseBandwidth, parseBandwidth, parseDelimitedString, parseHex, parseHex, parseMemorySize, parseMemorySize, parsePercentage, parseTime, parseTime, parseTimeNanos, parseTimeNanos, printStackTrace, randomize, randomize, randomize, read, read, read, read, read, read, read, replace, setErr, setLog, setLogEcho, setOut, sleep, toBandwidthString, toBandwidthString, toCharEscape, toCrc, toCrc, toCrc, toCrc, toCrc, toDecString, toDelimitedString, toDelimitedString, toDelimitedString, toDelimitedString, toHex, toHex, toHexDump, toHexEscape, toHexEscape, toHexEscape, toHexEscape, toHexString, toMemorySizeString, toMemorySizeString, toQuotedCharEscape, toQuotedStringEscape, toSqlString, toString, toString, toStringEscape, toUnicodeEscape, trace, trace, trace, trace, trace, trace, trace, trace, trace, truncateString, truncateString, waitfinalize, getClass, notify, notifyAll, wait, wait, waitclosecompute, computeIfAbsent, computeIfPresent, containsValue, entrySet, equals, forEach, getOrDefault, hashCode, keySet, merge, putIfAbsent, remove, replace, replace, replaceAll, valuesprotected ObservableSplittingBackingCache m_mapOuter
protected CapacityAwareMap(BackingMapManager bmm, String sName)
bmm - a BackingMapManager that knows how to create and release the backing maps that this PartitionSplittingBackingMap is responsible forsName - the cache name for which this backing map existsprotected Object putInternal(Map mapPart, Object oKey, Object oValue)
putInternal in class PartitionSplittingBackingMapmapPart - a partition mapoKey - oKey with which the specified value is to be associatedoValue - oValue to be associated with the specified oKeyprotected void putAllInternal(Map mapPart, Map map)
putAllInternal in class PartitionSplittingBackingMapmapPart - a partition mapmap - the Map containing the key/value pairings to put into mapPartprotected void bind(ObservableSplittingBackingCache mapOuter)
ObservableSplittingBackingMap instance. This instance will have prepareUpdate invoked immediately prior to an insert to a partition map.mapOuter - the map used to call prepareUpdate