Package org.rocksdb

Class WriteBufferManager

All Implemented Interfaces:
AutoCloseable

public class WriteBufferManager extends RocksObject
Java wrapper over native write_buffer_manager class
  • Constructor Details

    • WriteBufferManager

      public WriteBufferManager(long bufferSizeBytes, Cache cache, boolean allowStall)
      Construct a new instance of WriteBufferManager.

      Check https://github.com/facebook/rocksdb/wiki/Write-Buffer-Manager for more details on when to use it

      Parameters:
      bufferSizeBytes - buffer size(in bytes) to use for native write_buffer_manager
      cache - cache whose memory should be bounded by this write buffer manager
      allowStall - if set true, it will enable stalling of writes when memory_usage() exceeds buffer_size. It will wait for flush to complete and memory usage to drop down.
    • WriteBufferManager

      public WriteBufferManager(long bufferSizeBytes, Cache cache)
  • Method Details

    • allowStall

      public boolean allowStall()
    • disposeInternal

      protected void disposeInternal(long handle)
      Specified by:
      disposeInternal in class RocksObject