org.apache.hadoop.hbase.client.backoff
Class ExponentialClientBackoffPolicy
java.lang.Object
org.apache.hadoop.hbase.client.backoff.ExponentialClientBackoffPolicy
- All Implemented Interfaces:
- ClientBackoffPolicy
@InterfaceAudience.Public
@InterfaceStability.Unstable
public class ExponentialClientBackoffPolicy
- extends Object
- implements ClientBackoffPolicy
Simple exponential backoff policy on for the client that uses a percent^4 times the
max backoff to generate the backoff time.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_MAX_BACKOFF
public static final long DEFAULT_MAX_BACKOFF
- See Also:
- Constant Field Values
MAX_BACKOFF_KEY
public static final String MAX_BACKOFF_KEY
- See Also:
- Constant Field Values
ExponentialClientBackoffPolicy
public ExponentialClientBackoffPolicy(org.apache.hadoop.conf.Configuration conf)
getBackoffTime
public long getBackoffTime(ServerName serverName,
byte[] region,
ServerStatistics stats)
- Specified by:
getBackoffTime
in interface ClientBackoffPolicy
- Returns:
- the number of ms to wait on the client based on the
Copyright © 2015 The Apache Software Foundation. All Rights Reserved.