Class ExponentialClientBackoffPolicy
java.lang.Object
org.apache.hadoop.hbase.client.backoff.ExponentialClientBackoffPolicy
- All Implemented Interfaces:
ClientBackoffPolicy
Simple exponential backoff policy on for the client that uses a percent^4 times the max backoff
to generate the backoff time.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final long
private float
private float
static final String
private long
private static final long
Fields inherited from interface org.apache.hadoop.hbase.client.backoff.ClientBackoffPolicy
BACKOFF_POLICY_CLASS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getBackoffTime
(ServerName serverName, byte[] region, ServerStatistics stats) Returns the number of ms to wait on the client based on theprivate static double
scale
(double valueIn, double baseMin, double baseMax, double limitMin, double limitMax) Scale valueIn in the range [baseMin,baseMax] to the range [limitMin,limitMax]
-
Field Details
-
ONE_MINUTE
- See Also:
-
DEFAULT_MAX_BACKOFF
- See Also:
-
MAX_BACKOFF_KEY
- See Also:
-
maxBackoff
-
heapOccupancyLowWatermark
-
heapOccupancyHighWatermark
-
-
Constructor Details
-
ExponentialClientBackoffPolicy
-
-
Method Details
-
getBackoffTime
Description copied from interface:ClientBackoffPolicy
Returns the number of ms to wait on the client based on the- Specified by:
getBackoffTime
in interfaceClientBackoffPolicy
-
scale
private static double scale(double valueIn, double baseMin, double baseMax, double limitMin, double limitMax) Scale valueIn in the range [baseMin,baseMax] to the range [limitMin,limitMax]
-