public class WriteBufferManager extends RocksObject
nativeHandle_
owningHandle_
Constructor and Description |
---|
WriteBufferManager(long bufferSizeBytes,
Cache cache) |
WriteBufferManager(long bufferSizeBytes,
Cache cache,
boolean allowStall)
Construct a new instance of WriteBufferManager.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allowStall() |
protected void |
disposeInternal(long handle) |
disposeInternal, getNativeHandle
close, disOwnNativeHandle, isOwningHandle
public WriteBufferManager(long bufferSizeBytes, Cache cache, boolean allowStall)
Check https://github.com/facebook/rocksdb/wiki/Write-Buffer-Manager for more details on when to use it
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.public WriteBufferManager(long bufferSizeBytes, Cache cache)
public boolean allowStall()
protected void disposeInternal(long handle)
disposeInternal
in class RocksObject