]>
git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/java/src/main/java/org/rocksdb/FlushOptions.java
4 * FlushOptions to be passed to flush operations of
5 * {@link org.rocksdb.RocksDB}.
7 public class FlushOptions
extends RocksObject
{
13 * Construct a new instance of FlushOptions.
15 public FlushOptions(){
16 super(newFlushOptions());
20 * Set if the flush operation shall block until it terminates.
22 * @param waitForFlush boolean value indicating if the flush
23 * operations waits for termination of the flush process.
25 * @return instance of current FlushOptions.
27 public FlushOptions
setWaitForFlush(final boolean waitForFlush
) {
28 assert(isOwningHandle());
29 setWaitForFlush(nativeHandle_
, waitForFlush
);
34 * Wait for flush to finished.
36 * @return boolean value indicating if the flush operation
37 * waits for termination of the flush process.
39 public boolean waitForFlush() {
40 assert(isOwningHandle());
41 return waitForFlush(nativeHandle_
);
44 private native static long newFlushOptions();
45 @Override protected final native void disposeInternal(final long handle
);
46 private native void setWaitForFlush(long handle
,
48 private native boolean waitForFlush(long handle
);