Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


com.tangosol.net.cache
Class ReadWriteBackingMap.CacheStoreWrapper

java.lang.Object
  extended by com.tangosol.util.Base
      extended by com.tangosol.net.cache.ReadWriteBackingMap.StoreWrapper
          extended by 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

Field Summary

 

Fields inherited from class com.tangosol.net.cache.ReadWriteBackingMap.StoreWrapper
m_cEraseFailures, m_cEraseMillis, m_cEraseOps, m_cLoadFailures, m_cLoadMillis, m_cLoadOps, m_cStoreEntries, m_cStoreFailures, m_cStoreMillis, m_cStoreOps, m_eraseBundler, m_fEraseAllSupported, m_fEraseSupported, m_fStoreAllSupported, m_fStoreSupported, m_loadBundler, m_storeBundler

 

Constructor Summary
ReadWriteBackingMap.CacheStoreWrapper(CacheStore store)
          Construct a CacheStoreWrapper.

 

Method Summary
protected  void eraseAllInternal(java.util.Set setBinEntries)
          Remove the specified entries from the underlying store.
protected  void eraseInternal(ReadWriteBackingMap.Entry binEntry)
          Remove the specified entry from the underlying store.
 CacheStore getCacheStore()
          The wrapped CacheStore.
 java.lang.Object getStore()
          Return the cache store object to which this wrapper delegates.
 AbstractBundler instantiateEraseBundler()
          Create the bundler for the erase operations.
 AbstractBundler instantiateLoadBundler()
          Create the bundler for the load operations.
 AbstractBundler instantiateStoreBundler()
          Create the bundler for the store operations.
protected  java.util.Set loadAllInternal(java.util.Set setBinKey)
          Load the entries associated with each of the specified binary keys from the underlying store.
protected  ReadWriteBackingMap.Entry loadInternal(java.lang.Object binKey)
          Load the entry associated with the specified key from the underlying store.
protected  void storeAllInternal(java.util.Set setBinEntries)
          Store the entries in the specified set in the underlying store.
protected  void storeInternal(ReadWriteBackingMap.Entry binEntry)
          Store the specified entry in the underlying store.
 java.lang.String toString()
          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, getStoreBundler, getStoreFailures, getStoreMillis, getStoreOps, isEraseAllSupported, isEraseSupported, isStoreAllSupported, isStoreSupported, load, loadAll, onEraseAllFailure, onEraseFailure, onLoadAllFailure, onLoadFailure, onStoreAllFailure, onStoreFailure, replace, reportUnsupported, requeue, resetStatistics, setEraseAllSupported, setEraseSupported, setStoreAllSupported, setStoreSupported, store, storeAll

 

Constructor Detail

ReadWriteBackingMap.CacheStoreWrapper

public ReadWriteBackingMap.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:
instantiateLoadBundler in class ReadWriteBackingMap.StoreWrapper
Returns:
the "load" bundler

instantiateStoreBundler

public AbstractBundler instantiateStoreBundler()
Create the bundler for the store operations.
Specified by:
instantiateStoreBundler in class ReadWriteBackingMap.StoreWrapper
Returns:
the "store" bundler

instantiateEraseBundler

public AbstractBundler instantiateEraseBundler()
Create the bundler for the erase operations.
Specified by:
instantiateEraseBundler in class ReadWriteBackingMap.StoreWrapper
Returns:
the "erase" bundler

loadInternal

protected ReadWriteBackingMap.Entry loadInternal(java.lang.Object binKey)
Load the entry associated with the specified key from the underlying store.
Specified by:
loadInternal in class ReadWriteBackingMap.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 java.util.Set loadAllInternal(java.util.Set setBinKey)
Load the entries associated with each of the specified binary keys from the underlying store.
Specified by:
loadAllInternal in class ReadWriteBackingMap.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:
storeInternal in class ReadWriteBackingMap.StoreWrapper
Parameters:
binEntry - the entry to be stored

storeAllInternal

protected void storeAllInternal(java.util.Set setBinEntries)
Store the entries in the specified set in the underlying store.
Specified by:
storeAllInternal in class ReadWriteBackingMap.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:
eraseInternal in class ReadWriteBackingMap.StoreWrapper
Parameters:
binEntry - the entry to be removed from the store

eraseAllInternal

protected void eraseAllInternal(java.util.Set setBinEntries)
Remove the specified entries from the underlying store.
Specified by:
eraseAllInternal in class ReadWriteBackingMap.StoreWrapper
Parameters:
setBinEntries - the set entries to be removed from the store

getStore

public java.lang.Object getStore()
Return the cache store object to which this wrapper delegates.
Specified by:
getStore in class ReadWriteBackingMap.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

toString

public java.lang.String toString()
Return a String representation of the CacheStoreWrapper object that will be used as a part of the write-behind thread name.
Returns:
a String representation of the CacheStoreWrapper object

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


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