Package com.tangosol.net.cache
Class ReadWriteBackingMap.CacheStoreWrapper
- java.lang.Object
-
- com.tangosol.util.Base
-
- com.tangosol.net.cache.ReadWriteBackingMap.StoreWrapper
-
- com.tangosol.net.cache.ReadWriteBackingMap.CacheStoreWrapper
-
- Direct Known Subclasses:
VersionedBackingMap.CacheStoreWrapper
- Enclosing class:
- ReadWriteBackingMap
public class ReadWriteBackingMap.CacheStoreWrapper extends ReadWriteBackingMap.StoreWrapper
A wrapper around the original CacheStore to allow operations to be overridden and extended.- Author:
- cp 2002.06.04
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.tangosol.util.Base
Base.LoggingWriter
-
-
Field Summary
-
Fields inherited from class com.tangosol.net.cache.ReadWriteBackingMap.StoreWrapper
f_cLoadFailures, f_cLoadMillis, f_cLoadOps, f_cPendingAsyncStoreOps, f_cStoreEntries, f_cStoreFailures, f_cStoreMillis, f_cStoreOps, m_cEraseFailures, m_cEraseMillis, m_cEraseOps, m_eraseBundler, m_fEraseAllSupported, m_fEraseSupported, m_fStoreAllSupported, m_fStoreSupported, m_loadBundler, m_storeBundler
-
-
Constructor Summary
Constructors Constructor Description CacheStoreWrapper(CacheStore store)Construct a CacheStoreWrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voideraseAllInternal(Set setBinEntries)Remove the specified entries from the underlying store.protected voideraseInternal(ReadWriteBackingMap.Entry binEntry)Remove the specified entry from the underlying store.CacheStoregetCacheStore()The wrapped CacheStore.ObjectgetStore()Return the cache store object to which this wrapper delegates.AbstractBundlerinstantiateEraseBundler()Create the bundler for the erase operations.AbstractBundlerinstantiateLoadBundler()Create the bundler for the load operations.AbstractBundlerinstantiateStoreBundler()Create the bundler for the store operations.protected SetloadAllInternal(Set setBinKey)Load the entries associated with each of the specified binary keys from the underlying store.protected ReadWriteBackingMap.EntryloadInternal(Object binKey)Load the entry associated with the specified key from the underlying store.protected com.tangosol.internal.tracing.Span.BuildernewSpan(String sOperation)Return aSpan.Builderfor the specified operation.protected com.tangosol.internal.tracing.Span.BuildernewSpan(String sOperation, ReadWriteBackingMap.Entry entry)Return aSpan.Builderfor a given operation on an entry.protected com.tangosol.internal.tracing.Span.BuildernewSpan(String sOperation, Set<ReadWriteBackingMap.Entry> setEntries)Return aSpan.Builderfor a given operation on a set of entries.protected voidstoreAllInternal(Set setBinEntries)Store the entries in the specified set in the underlying store.protected voidstoreInternal(ReadWriteBackingMap.Entry binEntry)Store the specified entry in the underlying store.StringtoString()Return a String representation of the CacheStoreWrapper object that will be used as a part of the write-behind thread name.-
Methods inherited from class com.tangosol.net.cache.ReadWriteBackingMap.StoreWrapper
calculateRequeueDelay, ensureEraseBundler, ensureLoadBundler, ensureStoreBundler, erase, eraseAll, formatKeys, getAverageBatchSize, getAverageEraseMillis, getAverageLoadMillis, getAverageStoreMillis, getEraseBundler, getEraseFailures, getEraseMillis, getEraseOps, getLoadBundler, getLoadFailures, getLoadMillis, getLoadOps, getPendingAsyncStoreOps, getStoreBundler, getStoreFailures, getStoreMillis, getStoreOps, isBlocking, isEraseAllSupported, isEraseSupported, isStoreAllSupported, isStoreSupported, load, loadAll, onEraseAllFailure, onEraseFailure, onEraseFailure, onLoadAllFailure, onLoadAllFailure, onLoadFailure, onLoadFailure, onStoreAllFailure, onStoreAllFailure, onStoreFailure, onStoreFailure, replace, reportUnsupported, requeue, resetStatistics, setEraseAllSupported, setEraseSupported, setStoreAllSupported, setStoreSupported, store, storeAll
-
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, 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, wait
-
-
-
-
Constructor Detail
-
CacheStoreWrapper
public CacheStoreWrapper(CacheStore store)
Construct a CacheStoreWrapper.- Parameters:
store- the CacheStore to wrap
-
-
Method Detail
-
instantiateLoadBundler
public AbstractBundler instantiateLoadBundler()
Create the bundler for the load operations.- Specified by:
instantiateLoadBundlerin classReadWriteBackingMap.StoreWrapper- Returns:
- the "load" bundler
-
instantiateStoreBundler
public AbstractBundler instantiateStoreBundler()
Create the bundler for the store operations.- Specified by:
instantiateStoreBundlerin classReadWriteBackingMap.StoreWrapper- Returns:
- the "store" bundler
-
instantiateEraseBundler
public AbstractBundler instantiateEraseBundler()
Create the bundler for the erase operations.- Specified by:
instantiateEraseBundlerin classReadWriteBackingMap.StoreWrapper- Returns:
- the "erase" bundler
-
loadInternal
protected ReadWriteBackingMap.Entry loadInternal(Object binKey)
Load the entry associated with the specified key from the underlying store.- Specified by:
loadInternalin classReadWriteBackingMap.StoreWrapper- Parameters:
binKey- binary key whose associated value is to be loaded- Returns:
- the entry associated with the specified key, or null if no value is available for that key
-
loadAllInternal
protected Set loadAllInternal(Set setBinKey)
Load the entries associated with each of the specified binary keys from the underlying store.- Specified by:
loadAllInternalin classReadWriteBackingMap.StoreWrapper- Parameters:
setBinKey- a set of binary keys to load- Returns:
- a Set of entries for the specified keys
-
storeInternal
protected void storeInternal(ReadWriteBackingMap.Entry binEntry)
Store the specified entry in the underlying store.- Specified by:
storeInternalin classReadWriteBackingMap.StoreWrapper- Parameters:
binEntry- the entry to be stored
-
storeAllInternal
protected void storeAllInternal(Set setBinEntries)
Store the entries in the specified set in the underlying store.- Specified by:
storeAllInternalin classReadWriteBackingMap.StoreWrapper- Parameters:
setBinEntries- the set of entries to be stored
-
eraseInternal
protected void eraseInternal(ReadWriteBackingMap.Entry binEntry)
Remove the specified entry from the underlying store.- Specified by:
eraseInternalin classReadWriteBackingMap.StoreWrapper- Parameters:
binEntry- the entry to be removed from the store
-
eraseAllInternal
protected void eraseAllInternal(Set setBinEntries)
Remove the specified entries from the underlying store.- Specified by:
eraseAllInternalin classReadWriteBackingMap.StoreWrapper- Parameters:
setBinEntries- the set entries to be removed from the store
-
getStore
public Object getStore()
Return the cache store object to which this wrapper delegates.- Specified by:
getStorein classReadWriteBackingMap.StoreWrapper- Returns:
- the cache store object to which this wrapper delegates
-
getCacheStore
public CacheStore getCacheStore()
The wrapped CacheStore.- Returns:
- the underlying CacheStore this CacheStoreWrapper wraps
-
newSpan
protected com.tangosol.internal.tracing.Span.Builder newSpan(String sOperation)
Return aSpan.Builderfor the specified operation.- Parameters:
sOperation- the operation name- Returns:
- the
Span.Builder
-
newSpan
protected com.tangosol.internal.tracing.Span.Builder newSpan(String sOperation, ReadWriteBackingMap.Entry entry)
Return aSpan.Builderfor a given operation on an entry.- Parameters:
sOperation- the operation nameentry- the entry- Returns:
- the
Span.Builder
-
newSpan
protected com.tangosol.internal.tracing.Span.Builder newSpan(String sOperation, Set<ReadWriteBackingMap.Entry> setEntries)
Return aSpan.Builderfor a given operation on a set of entries.- Parameters:
sOperation- the operation namesetEntries- the set of entries- Returns:
- the
Span.Builder
-
-