@InterfaceAudience.Private abstract class AsyncAdminBuilderBase extends Object implements AsyncAdminBuilder
| Modifier and Type | Field and Description | 
|---|---|
| protected int | maxAttempts | 
| protected long | operationTimeoutNs | 
| protected long | pauseForCQTBENs | 
| protected long | pauseNs | 
| protected long | rpcTimeoutNs | 
| protected int | startLogErrorsCnt | 
| Constructor and Description | 
|---|
| AsyncAdminBuilderBase(AsyncConnectionConfiguration connConf) | 
| Modifier and Type | Method and Description | 
|---|---|
| AsyncAdminBuilder | setMaxAttempts(int maxAttempts)Set the max attempt 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 | setRetryPauseForCQTBE(long timeout,
                     TimeUnit unit)Set the base pause time for retrying when we hit  CallQueueTooBigException. | 
| 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. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuild, setMaxRetriesprotected long rpcTimeoutNs
protected long operationTimeoutNs
protected long pauseNs
protected long pauseForCQTBENs
protected int maxAttempts
protected int startLogErrorsCnt
AsyncAdminBuilderBase(AsyncConnectionConfiguration connConf)
public AsyncAdminBuilder setOperationTimeout(long timeout, TimeUnit unit)
AsyncAdminBuildersetOperationTimeout in interface AsyncAdminBuilderpublic AsyncAdminBuilder setRpcTimeout(long timeout, TimeUnit unit)
AsyncAdminBuildersetRpcTimeout in interface AsyncAdminBuilderpublic AsyncAdminBuilder setRetryPause(long timeout, TimeUnit unit)
AsyncAdminBuildersetRetryPause in interface AsyncAdminBuilderAsyncAdminBuilder.setRetryPauseForCQTBE(long, TimeUnit)public AsyncAdminBuilder setRetryPauseForCQTBE(long timeout, TimeUnit unit)
AsyncAdminBuilderCallQueueTooBigException. 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
 AsyncAdminBuilder.setRetryPause(long, TimeUnit) method, as usually CallQueueTooBigException
 means the server is overloaded. We just use the normal pause value for
 CallQueueTooBigException if here you specify a smaller value.setRetryPauseForCQTBE in interface AsyncAdminBuilderAsyncAdminBuilder.setRetryPause(long, TimeUnit)public AsyncAdminBuilder setMaxAttempts(int maxAttempts)
AsyncAdminBuildersetMaxAttempts in interface AsyncAdminBuilderpublic AsyncAdminBuilder setStartLogErrorsCnt(int startLogErrorsCnt)
AsyncAdminBuildersetStartLogErrorsCnt in interface AsyncAdminBuilderCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.