@InterfaceAudience.Public public interface AsyncAdminBuilder
AsyncAdmin
. The implementation should have default configurations set before
returning the builder to user. So users are free to only set the configs they care about to
create a new AsyncAdmin instance.Modifier and Type | Method and Description |
---|---|
AsyncAdmin |
build()
Create a
AsyncAdmin instance. |
AsyncAdminBuilder |
setMaxAttempts(int maxAttempts)
Set the max attempt times for an admin operation.
|
default AsyncAdminBuilder |
setMaxRetries(int maxRetries)
Set the max retry times for an admin operation.
|
AsyncAdminBuilder |
setOperationTimeout(long timeout,
TimeUnit unit)
Set timeout for a whole admin operation.
|
AsyncAdminBuilder |
setRetryPause(long timeout,
TimeUnit unit)
Set the base pause time for retrying.
|
default AsyncAdminBuilder |
setRetryPauseForCQTBE(long pause,
TimeUnit unit)
Deprecated.
Since 2.5.0, will be removed in 4.0.0. Please use
setRetryPauseForServerOverloaded(long, TimeUnit) instead. |
AsyncAdminBuilder |
setRetryPauseForServerOverloaded(long pause,
TimeUnit unit)
Set the base pause time for retrying when
HBaseServerException.isServerOverloaded() . |
AsyncAdminBuilder |
setRpcTimeout(long timeout,
TimeUnit unit)
Set timeout for each rpc request.
|
AsyncAdminBuilder |
setStartLogErrorsCnt(int startLogErrorsCnt)
Set the number of retries that are allowed before we start to log.
|
AsyncAdminBuilder setOperationTimeout(long timeout, TimeUnit unit)
AsyncAdminBuilder setRpcTimeout(long timeout, TimeUnit unit)
AsyncAdminBuilder setRetryPause(long timeout, TimeUnit unit)
setRetryPauseForServerOverloaded(long, TimeUnit)
@Deprecated default AsyncAdminBuilder setRetryPauseForCQTBE(long pause, TimeUnit unit)
setRetryPauseForServerOverloaded(long, TimeUnit)
instead.HBaseServerException.isServerOverloaded()
. We
use an exponential policy to generate sleep time from this base when retrying.
This value should be greater than the normal pause value which could be set with the above
setRetryPause(long, TimeUnit)
method, as usually
HBaseServerException.isServerOverloaded()
means the server is overloaded. We just use
the normal pause value for HBaseServerException.isServerOverloaded()
if here you
specify a smaller value.setRetryPause(long, TimeUnit)
AsyncAdminBuilder setRetryPauseForServerOverloaded(long pause, TimeUnit unit)
HBaseServerException.isServerOverloaded()
. We
use an exponential policy to generate sleep time when retrying.
This value should be greater than the normal pause value which could be set with the above
setRetryPause(long, TimeUnit)
method, as usually
HBaseServerException.isServerOverloaded()
means the server is overloaded. We just use
the normal pause value for HBaseServerException.isServerOverloaded()
if here you
specify a smaller value.setRetryPause(long, TimeUnit)
default AsyncAdminBuilder setMaxRetries(int maxRetries)
AsyncAdminBuilder setMaxAttempts(int maxAttempts)
AsyncAdminBuilder setStartLogErrorsCnt(int startLogErrorsCnt)
AsyncAdmin build()
AsyncAdmin
instance.AsyncAdmin
instanceCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.