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
FieldsModifier and TypeFieldDescriptionstatic final longprivate floatprivate floatstatic final Stringprivate longprivate static final longFields inherited from interface org.apache.hadoop.hbase.client.backoff.ClientBackoffPolicy
BACKOFF_POLICY_CLASS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetBackoffTime(ServerName serverName, byte[] region, ServerStatistics stats) Returns the number of ms to wait on the client based on theprivate static doublescale(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:ClientBackoffPolicyReturns the number of ms to wait on the client based on the- Specified by:
getBackoffTimein 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]
-