|
|
@ -604,6 +604,17 @@ public class DBOptions extends RocksObject implements DBOptionsInterface { |
|
|
|
|
|
|
|
|
|
|
|
static final int DEFAULT_NUM_SHARD_BITS = -1; |
|
|
|
static final int DEFAULT_NUM_SHARD_BITS = -1; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public DBOptions setDelayedWriteRate(final long delayedWriteRate){ |
|
|
|
|
|
|
|
assert(isOwningHandle()); |
|
|
|
|
|
|
|
setDelayedWriteRate(nativeHandle_, delayedWriteRate); |
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public long delayedWriteRate(){ |
|
|
|
|
|
|
|
return delayedWriteRate(nativeHandle_); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* <p>Private constructor to be used by |
|
|
|
* <p>Private constructor to be used by |
|
|
|
* {@link #getDBOptionsFromProps(java.util.Properties)}</p> |
|
|
|
* {@link #getDBOptionsFromProps(java.util.Properties)}</p> |
|
|
@ -725,6 +736,9 @@ public class DBOptions extends RocksObject implements DBOptionsInterface { |
|
|
|
long writeThreadSlowYieldUsec); |
|
|
|
long writeThreadSlowYieldUsec); |
|
|
|
private native long writeThreadSlowYieldUsec(long handle); |
|
|
|
private native long writeThreadSlowYieldUsec(long handle); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private native void setDelayedWriteRate(long handle, long delayedWriteRate); |
|
|
|
|
|
|
|
private native long delayedWriteRate(long handle); |
|
|
|
|
|
|
|
|
|
|
|
int numShardBits_; |
|
|
|
int numShardBits_; |
|
|
|
RateLimiterConfig rateLimiterConfig_; |
|
|
|
RateLimiterConfig rateLimiterConfig_; |
|
|
|
} |
|
|
|
} |
|
|
|