Class AbstractStoreManager

java.lang.Object
com.tangosol.util.Base
com.tangosol.io.nio.AbstractStoreManager
All Implemented Interfaces:
BinaryStoreManager
Direct Known Subclasses:
MappedStoreManager

public abstract class AbstractStoreManager extends Base implements BinaryStoreManager
A base implementation of BinaryStoreManager interface that uses BinaryMap objects built on a ByteBufferManager to provide BinaryStore objects.
Since:
Coherence 2.4
Author:
gg 2004.06.09
  • Constructor Details

    • AbstractStoreManager

      public AbstractStoreManager(int cbInitial, int cbMaximum)
      Construct a AbstractStoreManager that uses BinaryMap objests built on the ByteBufferManager(s) with certain initial and maximum size.
      Parameters:
      cbInitial - the initial size of the managed buffers
      cbMaximum - the maximum size of the managed buffers
  • Method Details

    • getMinCapacity

      public int getMinCapacity()
      Determine the minimum size that the managed buffers can reach.
      Returns:
      minimum size for the managed buffers
    • setMinCapacity

      public void setMinCapacity(int cb)
      Specify the minimum size that the managed buffers can reach.
      Parameters:
      cb - minimum size for the managed buffers
    • getMaxCapacity

      public int getMaxCapacity()
      Determine the maximum size that the managed buffers can reach.
      Returns:
      maximum size for the managed buffers
    • setMaxCapacity

      public void setMaxCapacity(int cb)
      Specify the maximum size that the managed buffers can reach.
      Parameters:
      cb - maximum size for the managed buffers
    • createBinaryStore

      public BinaryStore createBinaryStore()
      Factory method: Returns a new BinaryStore.
      Specified by:
      createBinaryStore in interface BinaryStoreManager
      Returns:
      a new BinaryStore object
    • destroyBinaryStore

      public void destroyBinaryStore(BinaryStore store)
      Lifecycle method: Destroy a BinaryStore previously created by this manager.
      Specified by:
      destroyBinaryStore in interface BinaryStoreManager
      Parameters:
      store - a BinaryStore object previously created by this manager
    • createBufferManager

      protected abstract ByteBufferManager createBufferManager()
      Create a ByteBufferManager to be used by a BinaryStore.