Package org.apache.hadoop.hbase.client
Class AsyncAdminBuilderBase
java.lang.Object
org.apache.hadoop.hbase.client.AsyncAdminBuilderBase
- All Implemented Interfaces:
AsyncAdminBuilder
Base class for all asynchronous admin builders.
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected long
protected long
protected long
protected long
protected int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionsetMaxAttempts
(int maxAttempts) Set the max attempt times for an admin operation.setOperationTimeout
(long timeout, TimeUnit unit) Set timeout for a whole admin operation.setRetryPause
(long timeout, TimeUnit unit) Set the base pause time for retrying.setRetryPauseForServerOverloaded
(long timeout, TimeUnit unit) Set the base pause time for retrying whenHBaseServerException.isServerOverloaded()
.setRpcTimeout
(long timeout, TimeUnit unit) Set timeout for each rpc request.setStartLogErrorsCnt
(int startLogErrorsCnt) Set the number of retries that are allowed before we start to log.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.hadoop.hbase.client.AsyncAdminBuilder
build, setMaxRetries, setRetryPauseForCQTBE
-
Field Details
-
rpcTimeoutNs
-
operationTimeoutNs
-
pauseNs
-
pauseNsForServerOverloaded
-
maxAttempts
-
startLogErrorsCnt
-
-
Constructor Details
-
AsyncAdminBuilderBase
-
-
Method Details
-
setOperationTimeout
Description copied from interface:AsyncAdminBuilder
Set timeout for a whole admin operation. 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.- Specified by:
setOperationTimeout
in interfaceAsyncAdminBuilder
- Returns:
- this for invocation chaining
-
setRpcTimeout
Description copied from interface:AsyncAdminBuilder
Set timeout for each rpc request.- Specified by:
setRpcTimeout
in interfaceAsyncAdminBuilder
- Returns:
- this for invocation chaining
-
setRetryPause
Description copied from interface:AsyncAdminBuilder
Set the base pause time for retrying. We use an exponential policy to generate sleep time when retrying.- Specified by:
setRetryPause
in interfaceAsyncAdminBuilder
- Returns:
- this for invocation chaining
- See Also:
-
setRetryPauseForServerOverloaded
Description copied from interface:AsyncAdminBuilder
Set the base pause time for retrying whenHBaseServerException.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 aboveAsyncAdminBuilder.setRetryPause(long, TimeUnit)
method, as usuallyHBaseServerException.isServerOverloaded()
means the server is overloaded. We just use the normal pause value forHBaseServerException.isServerOverloaded()
if here you specify a smaller value.- Specified by:
setRetryPauseForServerOverloaded
in interfaceAsyncAdminBuilder
- See Also:
-
setMaxAttempts
Description copied from interface:AsyncAdminBuilder
Set the max attempt times for an admin operation. Usually it is the max retry times plus 1. 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.- Specified by:
setMaxAttempts
in interfaceAsyncAdminBuilder
- Returns:
- this for invocation chaining
-
setStartLogErrorsCnt
Description copied from interface:AsyncAdminBuilder
Set the number of retries that are allowed before we start to log.- Specified by:
setStartLogErrorsCnt
in interfaceAsyncAdminBuilder
- Returns:
- this for invocation chaining
-