public static RetryCounter getRetryCounter() {
    return new RetryCounterFactory(
      new RetryCounter.RetryConfig().setBackoffPolicy(new RetryCounter.ExponentialBackoffPolicy())
        .setSleepInterval(100).setMaxSleepTime(30000).setMaxAttempts(Integer.MAX_VALUE)
        .setTimeUnit(TimeUnit.MILLISECONDS).setJitter(0.01f))
      .create();
  }
Get an exponential backoff retry counter. The base unit is 100 milliseconds, and the max
backoff time is 30 seconds.
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/handler/HandlerUtil.java