@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.
|
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)
timeout
- unit
- AsyncAdminBuilder setRpcTimeout(long timeout, TimeUnit unit)
timeout
- unit
- AsyncAdminBuilder setRetryPause(long timeout, TimeUnit unit)
timeout
- unit
- default AsyncAdminBuilder setMaxRetries(int maxRetries)
maxRetries
- AsyncAdminBuilder setMaxAttempts(int maxAttempts)
maxAttempts
- AsyncAdminBuilder setStartLogErrorsCnt(int startLogErrorsCnt)
startLogErrorsCnt
- AsyncAdmin build()
AsyncAdmin
instance.AsyncAdmin
instanceCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.