public static RetryCounterFactory createLockRetryCounterFactory(Configuration conf) {
    return new RetryCounterFactory(
      conf.getInt("hbase.hbck.lockfile.attempts", DEFAULT_MAX_LOCK_FILE_ATTEMPTS),
      conf.getInt("hbase.hbck.lockfile.attempt.sleep.interval",
        DEFAULT_LOCK_FILE_ATTEMPT_SLEEP_INTERVAL),
      conf.getInt("hbase.hbck.lockfile.attempt.maxsleeptime",
        DEFAULT_LOCK_FILE_ATTEMPT_MAX_SLEEP_TIME));
  }
Returns A retry counter factory configured for retrying lock file creation.
hbase-server/src/main/java/org/apache/hadoop/hbase/util/HBaseFsck.java