Class SnapshotBufferManager

java.lang.Object
org.gridgain.internal.snapshots.buffer.SnapshotBufferManager
All Implemented Interfaces:
ByteBufferPoolProvider

public class SnapshotBufferManager extends Object implements ByteBufferPoolProvider
Byte buffer pool manager for snapshot related module.
  • Constructor Details

    • SnapshotBufferManager

      public SnapshotBufferManager(org.gridgain.internal.snapshots.configuration.NodeSnapshotConfiguration nodeSnapshotConfiguration)
      Constructor.
  • Method Details

    • encryptionPool

      public EncryptionByteBufferPool encryptionPool(Cipher cipher)
      Description copied from interface: ByteBufferPoolProvider
      Provides a buffer pool configured for cryptographic operations using the specified cipher. The returned pool manages buffers that comply with:
      • Algorithm-specific block size requirements
      • Input/output size constraints for the cipher
      • Padding requirements for complete blocks
      Specified by:
      encryptionPool in interface ByteBufferPoolProvider
      Parameters:
      cipher - the cryptographic cipher that determines buffer sizing requirements.
      Returns:
      configured buffer pool for encryption/decryption operations.
    • flushToDiskPool

      public ByteBufferPool flushToDiskPool()
      Description copied from interface: ByteBufferPoolProvider
      Provides a buffer pool optimized for disk write operations. The pool features:
      • Configurable pool size and buffers based on NodeSnapshotConfiguration
      • Buffers sized to minimize write amplification
      Specified by:
      flushToDiskPool in interface ByteBufferPoolProvider
      Returns:
      buffer pool optimized for disk I/O operations