@InterfaceAudience.Public public class ExponentialClientBackoffPolicy extends Object implements ClientBackoffPolicy
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_MAX_BACKOFF |
static String |
MAX_BACKOFF_KEY |
BACKOFF_POLICY_CLASS
Constructor and Description |
---|
ExponentialClientBackoffPolicy(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
long |
getBackoffTime(ServerName serverName,
byte[] region,
org.apache.hadoop.hbase.client.backoff.ServerStatistics stats)
Returns the number of ms to wait on the client based on the
|
public static final long DEFAULT_MAX_BACKOFF
public static final String MAX_BACKOFF_KEY
public ExponentialClientBackoffPolicy(org.apache.hadoop.conf.Configuration conf)
public long getBackoffTime(ServerName serverName, byte[] region, org.apache.hadoop.hbase.client.backoff.ServerStatistics stats)
ClientBackoffPolicy
getBackoffTime
in interface ClientBackoffPolicy
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.