org.apache.hadoop.hbase.util
Class RetryCounter
java.lang.Object
org.apache.hadoop.hbase.util.RetryCounter
@InterfaceAudience.Private
public class RetryCounter
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RetryCounter
public RetryCounter(int maxRetries,
int retryIntervalMillis,
TimeUnit timeUnit)
getMaxRetries
public int getMaxRetries()
sleepUntilNextRetry
public void sleepUntilNextRetry()
throws InterruptedException
- Sleep for a exponentially back off time
- Throws:
InterruptedException
shouldRetry
public boolean shouldRetry()
useRetry
public void useRetry()
getAttemptTimes
public int getAttemptTimes()
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.