Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


com.tangosol.net.cache
Class ReadWriteBackingMap.BinaryEntryStoreWrapper

java.lang.Object
  extended by com.tangosol.util.Base
      extended by com.tangosol.net.cache.ReadWriteBackingMap.StoreWrapper
          extended by com.tangosol.net.cache.ReadWriteBackingMap.BinaryEntryStoreWrapper

Enclosing class:
ReadWriteBackingMap

public class ReadWriteBackingMap.BinaryEntryStoreWrapper
extends ReadWriteBackingMap.StoreWrapper

A wrapper around the original BinaryEntryStore to allow operations to be overridden and extended.

Author:
tb 2011.01.11

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.BinaryEntryStoreWrapper(BinaryEntryStore store)
          Construct a BinaryEntryStoreWrapper.

 

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.
 BinaryEntryStore getBinaryEntryStore()
          The wrapped BinaryEntryStore.
 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 BinaryEntryStoreWrapper 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.BinaryEntryStoreWrapper

public ReadWriteBackingMap.BinaryEntryStoreWrapper(BinaryEntryStore store)
Construct a BinaryEntryStoreWrapper.
Parameters:
store - the BinaryEntryStore 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

getBinaryEntryStore

public BinaryEntryStore getBinaryEntryStore()
The wrapped BinaryEntryStore.
Returns:
the underlying BinaryEntryStore this CacheStoreWrapper wraps

toString

public java.lang.String toString()
Return a String representation of the BinaryEntryStoreWrapper 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® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


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