org.apache.hadoop.hbase.client.backoff
Class ExponentialClientBackoffPolicy

java.lang.Object
  extended by 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.


Field Summary
static long DEFAULT_MAX_BACKOFF
           
static String MAX_BACKOFF_KEY
           
 
Fields inherited from interface org.apache.hadoop.hbase.client.backoff.ClientBackoffPolicy
BACKOFF_POLICY_CLASS
 
Constructor Summary
ExponentialClientBackoffPolicy(org.apache.hadoop.conf.Configuration conf)
           
 
Method Summary
 long getBackoffTime(ServerName serverName, byte[] region, ServerStatistics stats)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ExponentialClientBackoffPolicy

public ExponentialClientBackoffPolicy(org.apache.hadoop.conf.Configuration conf)
Method Detail

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.