Package org.rocksdb
Class WriteBufferManager
java.lang.Object
org.rocksdb.AbstractNativeReference
org.rocksdb.AbstractImmutableNativeReference
org.rocksdb.RocksObject
org.rocksdb.WriteBufferManager
- All Implemented Interfaces:
AutoCloseable
Java wrapper over native write_buffer_manager class
-
Field Summary
Fields inherited from class org.rocksdb.RocksObject
nativeHandle_Fields inherited from class org.rocksdb.AbstractImmutableNativeReference
owningHandle_ -
Constructor Summary
ConstructorsConstructorDescriptionWriteBufferManager(long bufferSizeBytes, Cache cache) WriteBufferManager(long bufferSizeBytes, Cache cache, boolean allowStall) Construct a new instance of WriteBufferManager. -
Method Summary
Methods inherited from class org.rocksdb.RocksObject
disposeInternal, getNativeHandleMethods inherited from class org.rocksdb.AbstractImmutableNativeReference
close, disOwnNativeHandle, isOwningHandle
-
Constructor Details
-
WriteBufferManager
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_managercache- cache whose memory should be bounded by this write buffer managerallowStall- 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
-
-
Method Details
-
allowStall
public boolean allowStall() -
disposeInternal
protected void disposeInternal(long handle) - Specified by:
disposeInternalin classRocksObject
-