@InterfaceAudience.Private class AsyncBufferedMutatorBuilderImpl extends Object implements AsyncBufferedMutatorBuilder
AsyncBufferedMutatorBuilder
.Modifier and Type | Field and Description |
---|---|
private int |
maxKeyValueSize |
private org.apache.hbase.thirdparty.io.netty.util.HashedWheelTimer |
periodicalFlushTimer |
private long |
periodicFlushTimeoutNs |
private AsyncTableBuilder<?> |
tableBuilder |
private long |
writeBufferSize |
Constructor and Description |
---|
AsyncBufferedMutatorBuilderImpl(AsyncConnectionConfiguration connConf,
AsyncTableBuilder<?> tableBuilder,
org.apache.hbase.thirdparty.io.netty.util.HashedWheelTimer periodicalFlushTimer) |
Modifier and Type | Method and Description |
---|---|
AsyncBufferedMutator |
build()
Create the
AsyncBufferedMutator instance. |
AsyncBufferedMutatorBuilder |
setMaxAttempts(int maxAttempts)
Set the max attempt times for an operation.
|
AsyncBufferedMutatorBuilder |
setMaxKeyValueSize(int maxKeyValueSize)
Override the maximum key-value size specified by the provided
AsyncConnection 's
Configuration instance, via the configuration key
hbase.client.keyvalue.maxsize . |
AsyncBufferedMutatorBuilder |
setOperationTimeout(long timeout,
TimeUnit unit)
Set timeout for the background flush operation.
|
AsyncBufferedMutatorBuilder |
setRetryPause(long pause,
TimeUnit unit)
Set the base pause time for retrying.
|
AsyncBufferedMutatorBuilder |
setRpcTimeout(long timeout,
TimeUnit unit)
Set timeout for each rpc request when doing background flush.
|
AsyncBufferedMutatorBuilder |
setStartLogErrorsCnt(int startLogErrorsCnt)
Set the number of retries that are allowed before we start to log.
|
AsyncBufferedMutatorBuilder |
setWriteBufferPeriodicFlush(long timeout,
TimeUnit unit)
Set the periodical flush interval.
|
AsyncBufferedMutatorBuilder |
setWriteBufferSize(long writeBufferSize)
Override the write buffer size specified by the provided
AsyncConnection 's
Configuration instance, via the configuration key
hbase.client.write.buffer . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
disableWriteBufferPeriodicFlush, setMaxRetries
private final org.apache.hbase.thirdparty.io.netty.util.HashedWheelTimer periodicalFlushTimer
private final AsyncTableBuilder<?> tableBuilder
private long writeBufferSize
private long periodicFlushTimeoutNs
private int maxKeyValueSize
public AsyncBufferedMutatorBuilderImpl(AsyncConnectionConfiguration connConf, AsyncTableBuilder<?> tableBuilder, org.apache.hbase.thirdparty.io.netty.util.HashedWheelTimer periodicalFlushTimer)
public AsyncBufferedMutatorBuilder setOperationTimeout(long timeout, TimeUnit unit)
AsyncBufferedMutatorBuilder
setOperationTimeout
in interface AsyncBufferedMutatorBuilder
public AsyncBufferedMutatorBuilder setRpcTimeout(long timeout, TimeUnit unit)
AsyncBufferedMutatorBuilder
setRpcTimeout
in interface AsyncBufferedMutatorBuilder
public AsyncBufferedMutatorBuilder setRetryPause(long pause, TimeUnit unit)
AsyncBufferedMutatorBuilder
setRetryPause
in interface AsyncBufferedMutatorBuilder
public AsyncBufferedMutatorBuilder setMaxAttempts(int maxAttempts)
AsyncBufferedMutatorBuilder
setMaxAttempts
in interface AsyncBufferedMutatorBuilder
AsyncBufferedMutatorBuilder.setMaxRetries(int)
,
AsyncBufferedMutatorBuilder.setOperationTimeout(long, TimeUnit)
public AsyncBufferedMutatorBuilder setStartLogErrorsCnt(int startLogErrorsCnt)
AsyncBufferedMutatorBuilder
setStartLogErrorsCnt
in interface AsyncBufferedMutatorBuilder
public AsyncBufferedMutatorBuilder setWriteBufferSize(long writeBufferSize)
AsyncBufferedMutatorBuilder
AsyncConnection
's
Configuration
instance, via the configuration key
hbase.client.write.buffer
.setWriteBufferSize
in interface AsyncBufferedMutatorBuilder
public AsyncBufferedMutatorBuilder setWriteBufferPeriodicFlush(long timeout, TimeUnit unit)
AsyncBufferedMutatorBuilder
setWriteBufferPeriodicFlush
in interface AsyncBufferedMutatorBuilder
public AsyncBufferedMutatorBuilder setMaxKeyValueSize(int maxKeyValueSize)
AsyncBufferedMutatorBuilder
AsyncConnection
's
Configuration
instance, via the configuration key
hbase.client.keyvalue.maxsize
.setMaxKeyValueSize
in interface AsyncBufferedMutatorBuilder
public AsyncBufferedMutator build()
AsyncBufferedMutatorBuilder
AsyncBufferedMutator
instance.build
in interface AsyncBufferedMutatorBuilder
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.