Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


com.tangosol.net.cache
Class AbstractBinaryEntryBundler

java.lang.Object
  extended by com.tangosol.util.Base
      extended by com.tangosol.net.cache.AbstractBundler
          extended by com.tangosol.net.cache.AbstractBinaryEntryBundler


public abstract class AbstractBinaryEntryBundler
extends AbstractBundler

An abstract BinaryEntry-based bundler that serves as a base for BinaryEntryStore operation bundling.

Since:
Coherence 3.7
Author:
tb 2011.01.06

Nested Class Summary
protected  class AbstractBinaryEntryBundler.Bundle
           

 

Nested classes/interfaces inherited from class com.tangosol.net.cache.AbstractBundler
AbstractBundler.Statistics

 

Field Summary

 

Fields inherited from class com.tangosol.net.cache.AbstractBundler
ADJUSTMENT_FREQUENCY, m_countThreads, m_dPreviousSizeThreshold, m_listBundle

 

Constructor Summary
AbstractBinaryEntryBundler()
           

 

Method Summary
protected abstract  void bundle(java.util.Set setEntries)
          The bundle operation to be performed against a collected set of binary entries by the concrete AbstractEntryBundler implementations.
protected  AbstractBundler.Bundle instantiateBundle()
          Instantiate a new Bundle object.
protected  void process(BinaryEntry binEntry)
          Process the specified binary entry in a most optimal way according to the bundle settings.
protected  void processAll(java.util.Set set)
          Process a collection of binary entries in a most optimal way according to the bundle settings.
protected abstract  void unbundle(BinaryEntry binEntry)
          Un-bundle bundled operation.

 

Methods inherited from class com.tangosol.net.cache.AbstractBundler
adjust, getDelayMillis, getOpenBundle, getSizeThreshold, getThreadThreshold, isAllowAutoAdjust, resetStatistics, setAllowAutoAdjust, setDelayMillis, setSizeThreshold, setThreadThreshold, toString, updateStatistics

 

Constructor Detail

AbstractBinaryEntryBundler

public AbstractBinaryEntryBundler()

Method Detail

process

protected void process(BinaryEntry binEntry)
Process the specified binary entry in a most optimal way according to the bundle settings.
Parameters:
binEntry - the binary entry

processAll

protected void processAll(java.util.Set set)
Process a collection of binary entries in a most optimal way according to the bundle settings.
Parameters:
set - the set of binary entries to process

bundle

protected abstract void bundle(java.util.Set setEntries)
The bundle operation to be performed against a collected set of binary entries by the concrete AbstractEntryBundler implementations. If an exception occurs during bundle operation, it will be repeated using singleton maps.
Parameters:
setEntries - a set of binary entries to perform the bundled operation for

unbundle

protected abstract void unbundle(BinaryEntry binEntry)
Un-bundle bundled operation. This opeartion would be used if an exception occurs during bundle operation or if the number of active threads is below the ThreadThreshold value.
Parameters:
binEntry - a binary entry to perform the un-bundled operation for

instantiateBundle

protected AbstractBundler.Bundle instantiateBundle()
Instantiate a new Bundle object.
Specified by:
instantiateBundle in class AbstractBundler
Returns:
a new Bundle object

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


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