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
BlindCompactSerializationCache is a 
CompactSerializationCache 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 MapEvents
 raised as a result of mutations to this map will indiscriminately return
 null as the OldValue.
- Since:
- Coherence 12.1.2
- Author:
- hr 2013.07.09
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class com.tangosol.net.cache.CompactSerializationCacheCompactSerializationCache.HybridEvictionPolicy, CompactSerializationCache.InternalEvictionPolicy, CompactSerializationCache.KeySet, CompactSerializationCache.LFUEvictionPolicy, CompactSerializationCache.LRUEvictionPolicy, CompactSerializationCache.MinExpiryVisitor, CompactSerializationCache.TouchCountVisitor, CompactSerializationCache.WrapperEvictionPolicyNested classes/interfaces inherited from class com.tangosol.util.AbstractKeyBasedMapAbstractKeyBasedMap.DeferredCacheEvent<K,V>, AbstractKeyBasedMap.EntrySet, AbstractKeyBasedMap.ValuesCollection Nested classes/interfaces inherited from class com.tangosol.util.BaseBase.LoggingWriterNested classes/interfaces inherited from interface com.tangosol.net.cache.ConfigurableCacheMapConfigurableCacheMap.Entry, ConfigurableCacheMap.EvictionApprover, ConfigurableCacheMap.EvictionPolicy, ConfigurableCacheMap.UnitCalculator
- 
Field SummaryFields inherited from class com.tangosol.net.cache.CompactSerializationCacheDEFAULT_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_policyFields inherited from class com.tangosol.util.BaseDEFAULT_LOAD_FACTOR, 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_USFields inherited from interface com.tangosol.net.cache.CacheMapEXPIRY_DEFAULT, EXPIRY_NEVER
- 
Constructor SummaryConstructorsModifierConstructorDescriptionBlindCompactSerializationCache(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.protectedBlindCompactSerializationCache(BinaryStoreManager mgr, ClassLoader loader, boolean fBinary) Construct a BlindCompactSerializationCache using the specified BinaryStoreManager.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanisBlind()Return whether this CompactSerializationCache instance is in blind mode.Methods inherited from class com.tangosol.net.cache.CompactSerializationCacheaddMapListener, 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, updateUnitsMethods inherited from class com.tangosol.util.AbstractKeyBasedMapclone, entrySet, equals, getAll, hashCode, instantiateEntrySet, instantiateValues, isEmpty, keySet, putAll, valuesMethods inherited from class com.tangosol.util.Baseazzert, 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, newHashMap, newHashMap, newHashSet, newHashSet, 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, waitMethods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.oracle.coherence.common.base.DisposablecloseMethods inherited from interface java.util.Mapcompute, computeIfAbsent, computeIfPresent, entrySet, equals, forEach, getOrDefault, hashCode, isEmpty, keySet, merge, putAll, putIfAbsent, remove, replace, replace, replaceAll, values
- 
Constructor Details- 
BlindCompactSerializationCacheConstruct a BlindCompactSerializationCache using the specified BinaryStoreManager and classloader.- Parameters:
- mgr- the BinaryStoreManager to use to create the BinaryStore
- loader- the ClassLoader to use for deserialization
 
- 
BlindCompactSerializationCacheConstruct a BlindCompactSerializationCache using the specified BinaryStoreManager, optionally storing only Binary keys and values- Parameters:
- mgr- the BinaryStoreManager to use to create the BinaryStore
- fBinary- true iff only Binary keys and values are to be stored
 
- 
BlindCompactSerializationCacheprotected BlindCompactSerializationCache(BinaryStoreManager mgr, ClassLoader loader, boolean fBinary) Construct a BlindCompactSerializationCache using the specified BinaryStoreManager.- Parameters:
- mgr- the BinaryStoreManager to use to create the BinaryStore
- loader- the ClassLoader to use for deserialization
- fBinary- true iff only Binary keys and values are to be stored
 
 
- 
- 
Method Details- 
isBlindpublic 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:
- isBlindin class- CompactSerializationCache
- Returns:
- whether this CompactSerializationCache is operating in a blind mode
 
 
-