Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


com.tangosol.net.cache
Class BlindCompactSerializationCache

java.lang.Object
  extended by com.tangosol.util.Base
      extended by com.tangosol.util.AbstractKeyBasedMap
          extended by com.tangosol.net.cache.CompactSerializationCache
              extended by 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 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:
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.TouchCountVisitor, CompactSerializationCache.WrapperEvictionPolicy

 

Nested classes/interfaces inherited from class com.tangosol.util.AbstractKeyBasedMap
AbstractKeyBasedMap.DeferredCacheEvent, AbstractKeyBasedMap.EntrySet, AbstractKeyBasedMap.ValuesCollection

 

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 interface com.tangosol.net.cache.CacheMap
EXPIRY_DEFAULT, EXPIRY_NEVER

 

Constructor Summary
  BlindCompactSerializationCache(BinaryStoreManager mgr, boolean fBinary)
          Construct a BlindCompactSerializationCache using the specified BinaryStoreManager, optionally storing only Binary keys and values
  BlindCompactSerializationCache(BinaryStoreManager mgr, java.lang.ClassLoader loader)
          Construct a BlindCompactSerializationCache using the specified BinaryStoreManager and classloader.
protected BlindCompactSerializationCache(BinaryStoreManager mgr, java.lang.ClassLoader loader, boolean fBinary)
          Construct a BlindCompactSerializationCache using the specified BinaryStoreManager.

 

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

 

Constructor Detail

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

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 class CompactSerializationCache
Returns:
whether this CompactSerializationCache is operating in a blind mode

Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.