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.PartitionedIterator
AbstractKeyBasedMap.DeferredCacheEvent<K,V>, AbstractKeyBasedMap.EntrySet, AbstractKeyBasedMap.ValuesCollection
Base.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, toString
clone, containsValue, entrySet, equals, getAll, hashCode, instantiateEntrySet, instantiateValues, keySet, values
azzert, 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, getProcessRandom, 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, 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, wait
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, containsValue, entrySet, equals, forEach, getOrDefault, hashCode, keySet, merge, putIfAbsent, remove, replace, replace, replaceAll, values
protected 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 PartitionSplittingBackingMap
mapPart
- 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 PartitionSplittingBackingMap
mapPart
- 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