public class FlushOptions extends RocksObject
RocksDB.nativeHandle_owningHandle_| Constructor and Description |
|---|
FlushOptions()
Construct a new instance of FlushOptions.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowWriteStall()
Returns true if writes are allowed to stall for flushes to complete, false
otherwise.
|
protected void |
disposeInternal(long handle) |
FlushOptions |
setAllowWriteStall(boolean allowWriteStall)
Set to true so that flush would proceeds immediately even it it means
writes will stall for the duration of the flush.
|
FlushOptions |
setWaitForFlush(boolean waitForFlush)
Set if the flush operation shall block until it terminates.
|
boolean |
waitForFlush()
Wait for flush to finished.
|
disposeInternal, getNativeHandleclose, disOwnNativeHandle, isOwningHandlepublic FlushOptions setWaitForFlush(boolean waitForFlush)
waitForFlush - boolean value indicating if the flush
operations waits for termination of the flush process.public boolean waitForFlush()
public FlushOptions setAllowWriteStall(boolean allowWriteStall)
allowWriteStall - true to allow writes to stall for flush, false
otherwise.public boolean allowWriteStall()
protected final void disposeInternal(long handle)
disposeInternal in class RocksObjectCopyright © 2022. All rights reserved.