org.apache.hadoop.hbase.client.backoff
Interface ClientBackoffPolicy

All Known Implementing Classes:
ClientBackoffPolicyFactory.NoBackoffPolicy, ExponentialClientBackoffPolicy

@InterfaceAudience.Public
@InterfaceStability.Unstable
public interface ClientBackoffPolicy

Configurable policy for the amount of time a client should wait for a new request to the server when given the server load statistics.

Must have a single-argument constructor that takes a Configuration


Field Summary
static String BACKOFF_POLICY_CLASS
           
 
Method Summary
 long getBackoffTime(ServerName serverName, byte[] region, ServerStatistics stats)
           
 

Field Detail

BACKOFF_POLICY_CLASS

static final String BACKOFF_POLICY_CLASS
See Also:
Constant Field Values
Method Detail

getBackoffTime

long getBackoffTime(ServerName serverName,
                    byte[] region,
                    ServerStatistics stats)
Returns:
the number of ms to wait on the client based on the


Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.