Skip navigation links
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:
- com.oracle.common.base.Disposable, CacheMap, ConfigurableCacheMap, ObservableMap, java.util.Map
-
public class BlindCompactSerializationCache
- extends CompactSerializationCache
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 MapEvent
s 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:
CompactSerializationCache
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 |
Method Summary |
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, 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 interface com.tangosol.net.cache.CacheMap |
getAll |
Methods inherited from interface java.util.Map |
entrySet, equals, hashCode, isEmpty, keySet, putAll, values |
BlindCompactSerializationCache
public BlindCompactSerializationCache(BinaryStoreManager mgr,
java.lang.ClassLoader loader)
- Construct 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
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 BinaryStore
fBinary
- true iff only Binary keys and values are to be stored
BlindCompactSerializationCache
protected BlindCompactSerializationCache(BinaryStoreManager mgr,
java.lang.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
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 class CompactSerializationCache
-
- Returns:
- whether this CompactSerializationCache is operating in a blind mode
Skip navigation links
Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.