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, getNativeHandleclose, disOwnNativeHandle, isOwningHandlepublic WriteBufferManager(long bufferSizeBytes,
Cache cache,
boolean allowStall)
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 RocksObjectCopyright © 2022. All rights reserved.