@InterfaceAudience.Public public interface AsyncBufferedMutatorBuilder
AsyncBufferedMutator
.Modifier and Type | Method and Description |
---|---|
AsyncBufferedMutator |
build()
Create the
AsyncBufferedMutator instance. |
default AsyncBufferedMutatorBuilder |
disableWriteBufferPeriodicFlush()
Disable the periodical flush, i.e, set the timeout to 0.
|
AsyncBufferedMutatorBuilder |
setMaxAttempts(int maxAttempts)
Set the max attempt times for an operation.
|
default AsyncBufferedMutatorBuilder |
setMaxRetries(int maxRetries)
Set the max retry times for an operation.
|
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.
|
default 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 . |
AsyncBufferedMutatorBuilder setOperationTimeout(long timeout, TimeUnit unit)
AsyncBufferedMutatorBuilder setRpcTimeout(long timeout, TimeUnit unit)
AsyncBufferedMutatorBuilder setRetryPause(long pause, TimeUnit unit)
default AsyncBufferedMutatorBuilder setWriteBufferPeriodicFlush(long timeout, TimeUnit unit)
default AsyncBufferedMutatorBuilder disableWriteBufferPeriodicFlush()
default AsyncBufferedMutatorBuilder setMaxRetries(int maxRetries)
Operation timeout and max attempt times(or max retry times) are both limitations for retrying, we will stop retrying when we reach any of the limitations.
AsyncBufferedMutatorBuilder setMaxAttempts(int maxAttempts)
AsyncBufferedMutatorBuilder setStartLogErrorsCnt(int startLogErrorsCnt)
AsyncBufferedMutatorBuilder setWriteBufferSize(long writeBufferSize)
AsyncConnection
's
Configuration
instance, via the configuration key
hbase.client.write.buffer
.AsyncBufferedMutator build()
AsyncBufferedMutator
instance.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.