Class TestAsyncProcess.MyClientBackoffPolicy

java.lang.Object
org.apache.hadoop.hbase.client.TestAsyncProcess.MyClientBackoffPolicy
All Implemented Interfaces:
org.apache.hadoop.hbase.client.backoff.ClientBackoffPolicy
Enclosing class:
TestAsyncProcess

static class TestAsyncProcess.MyClientBackoffPolicy extends Object implements org.apache.hadoop.hbase.client.backoff.ClientBackoffPolicy
Make the backoff time always different on each call.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final Map<org.apache.hadoop.hbase.ServerName,AtomicInteger>
     

    Fields inherited from interface org.apache.hadoop.hbase.client.backoff.ClientBackoffPolicy

    BACKOFF_POLICY_CLASS
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    getBackoffTime(org.apache.hadoop.hbase.ServerName serverName, byte[] region, org.apache.hadoop.hbase.client.backoff.ServerStatistics stats)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • getBackoffTime

      public long getBackoffTime(org.apache.hadoop.hbase.ServerName serverName, byte[] region, org.apache.hadoop.hbase.client.backoff.ServerStatistics stats)
      Specified by:
      getBackoffTime in interface org.apache.hadoop.hbase.client.backoff.ClientBackoffPolicy