Package com.tangosol.net.cache
Class BlindCompactSerializationCache
- java.lang.Object
-
- com.tangosol.util.Base
-
- com.tangosol.util.AbstractKeyBasedMap
-
- com.tangosol.net.cache.CompactSerializationCache
-
- com.tangosol.net.cache.BlindCompactSerializationCache
-
- All Implemented Interfaces:
Disposable
,CacheMap
,ConfigurableCacheMap
,ObservableMap
,AutoCloseable
,Map
public class BlindCompactSerializationCache extends CompactSerializationCache
BlindCompactSerializationCache is aCompactSerializationCache
extension enforcing CompactSerializationCache to operate under a blind mode.Blind mode allows a Map implementation to forgo the often costly parts of the Map API, in particular returning the previous value for both remove and put operations. Additionally, any
MapEvent
s raised as a result of mutations to this map will indiscriminately return null as theOldValue
.- Since:
- Coherence 12.1.2
- Author:
- hr 2013.07.09
- See Also:
CompactSerializationCache
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.tangosol.net.cache.CompactSerializationCache
CompactSerializationCache.HybridEvictionPolicy, CompactSerializationCache.InternalEvictionPolicy, CompactSerializationCache.KeySet, CompactSerializationCache.LFUEvictionPolicy, CompactSerializationCache.LRUEvictionPolicy, CompactSerializationCache.MinExpiryVisitor, CompactSerializationCache.TouchCountVisitor, CompactSerializationCache.WrapperEvictionPolicy
-
Nested classes/interfaces inherited from class com.tangosol.util.AbstractKeyBasedMap
AbstractKeyBasedMap.DeferredCacheEvent<K,V>, AbstractKeyBasedMap.EntrySet, AbstractKeyBasedMap.ValuesCollection
-
Nested classes/interfaces inherited from class com.tangosol.util.Base
Base.LoggingWriter
-
Nested classes/interfaces inherited from interface com.tangosol.net.cache.ConfigurableCacheMap
ConfigurableCacheMap.Entry, ConfigurableCacheMap.EvictionApprover, ConfigurableCacheMap.EvictionPolicy, ConfigurableCacheMap.UnitCalculator
-
-
Field Summary
-
Fields inherited from class com.tangosol.net.cache.CompactSerializationCache
DEFAULT_PRUNE, f_atomicCurUnits, f_atomicEvictingMutex, f_atomicExpiringMutex, f_fBinary, f_ldtEpoch, f_loader, f_mblm, f_stats, f_store, f_visitorDefaultExpiry, m_apprvrEvict, m_blmExpiry, m_blmTouchCount, m_blmTouchTime, m_blmUnits, m_calculator, m_cExpiryDelay, m_cMaxUnits, m_cPruneUnits, m_dflPruneLevel, m_fBlind, m_ldtNextExpiryCheck, m_listenerSupport, m_nUnitFactor, m_policy
-
Fields inherited from class com.tangosol.util.Base
LOG_ALWAYS, LOG_CONFIG, LOG_DEBUG, LOG_ERR, LOG_INFO, LOG_MAX, LOG_MIN, LOG_QUIET, LOG_WARN, POWER_0, POWER_G, POWER_K, POWER_M, POWER_T, UNIT_D, UNIT_H, UNIT_M, UNIT_MS, UNIT_NS, UNIT_S, UNIT_US
-
Fields inherited from interface com.tangosol.net.cache.CacheMap
EXPIRY_DEFAULT, EXPIRY_NEVER
-
-
Constructor Summary
Constructors Modifier Constructor Description BlindCompactSerializationCache(BinaryStoreManager mgr, boolean fBinary)
Construct a BlindCompactSerializationCache using the specified BinaryStoreManager, optionally storing only Binary keys and valuesBlindCompactSerializationCache(BinaryStoreManager mgr, ClassLoader loader)
Construct a BlindCompactSerializationCache using the specified BinaryStoreManager and classloader.protected
BlindCompactSerializationCache(BinaryStoreManager mgr, ClassLoader loader, boolean fBinary)
Construct a BlindCompactSerializationCache using the specified BinaryStoreManager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isBlind()
Return whether this CompactSerializationCache instance is in blind mode.-
Methods inherited from class com.tangosol.net.cache.CompactSerializationCache
addMapListener, addMapListener, addMapListener, calculateUnits, checkExpiry, checkExpiry, checkSize, checkSize, clear, configureEviction, containsKey, containsValue, decodeExpiry, decodeTime, dispatchEvent, dispose, encodeExpiry, encodeTime, ensureExpiryMap, evict, evict, evictAll, evictInternal, fromBinary, get, getBinaryStore, getCacheEntry, getCacheEntryInternal, getCacheEntryInternal, getCacheStatistics, getClassLoader, getEntryUnits, getEvictionApprover, getEvictionPolicy, getExpiryDelay, getExpiryMap, getHighUnits, getInternalEvictionPolicy, getKeyMap, getLowUnits, getNextExpiryTime, getTouchCountMap, getTouchTimeMap, getUnitCalculator, getUnitFactor, getUnits, getUnitsMap, hasListeners, instantiateDeferredCacheEvent, instantiateKeySet, isBinaryMap, iterateKeys, put, put, registerExpiry, remove, removeBlind, removeInternal, removeMapListener, removeMapListener, removeMapListener, setBlind, setEvictionApprover, setEvictionPolicy, setExpiryDelay, setExpiryMap, setHighUnits, setLowUnits, setTouchCountMap, setTouchTimeMap, setUnitCalculator, setUnitFactor, setUnitsMap, size, toBinary, toExternalUnits, toInternalUnits, toString, touch, updateUnits
-
Methods inherited from class com.tangosol.util.AbstractKeyBasedMap
clone, entrySet, equals, getAll, hashCode, instantiateEntrySet, instantiateValues, isEmpty, keySet, putAll, values
-
Methods inherited from class com.tangosol.util.Base
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, getStackTrace, getThreadFactory, getTimeZone, getUpTimeMillis, hashCode, hexValue, indentString, indentString, isDecimal, isHex, isLogEcho, isOctal, log, log, log, log, log, makeInteger, makeLong, makeThread, mergeArray, mergeBooleanArray, mergeByteArray, mergeCharArray, mergeDoubleArray, mergeFloatArray, mergeIntArray, mergeLongArray, 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
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.oracle.coherence.common.base.Disposable
close
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, entrySet, equals, forEach, getOrDefault, hashCode, isEmpty, keySet, merge, putAll, putIfAbsent, remove, replace, replace, replaceAll, values
-
-
-
-
Constructor Detail
-
BlindCompactSerializationCache
public BlindCompactSerializationCache(BinaryStoreManager mgr, ClassLoader loader)
Construct a BlindCompactSerializationCache using the specified BinaryStoreManager and classloader.- Parameters:
mgr
- the BinaryStoreManager to use to create the BinaryStoreloader
- the ClassLoader to use for deserialization
-
BlindCompactSerializationCache
public BlindCompactSerializationCache(BinaryStoreManager mgr, boolean fBinary)
Construct a BlindCompactSerializationCache using the specified BinaryStoreManager, optionally storing only Binary keys and values- Parameters:
mgr
- the BinaryStoreManager to use to create the BinaryStorefBinary
- true iff only Binary keys and values are to be stored
-
BlindCompactSerializationCache
protected BlindCompactSerializationCache(BinaryStoreManager mgr, ClassLoader loader, boolean fBinary)
Construct a BlindCompactSerializationCache using the specified BinaryStoreManager.- Parameters:
mgr
- the BinaryStoreManager to use to create the BinaryStoreloader
- the ClassLoader to use for deserializationfBinary
- true iff only Binary keys and values are to be stored
-
-
Method Detail
-
isBlind
public boolean isBlind()
Return whether this CompactSerializationCache instance is in blind mode. Blind mode allows this Map implementation to forgo the often costly parts of the Map API, in particular returning the previous value for both remove and put operations.- Overrides:
isBlind
in classCompactSerializationCache
- Returns:
- whether this CompactSerializationCache is operating in a blind mode
-
-