org.apache.hadoop.hbase.util
Class RetryCounter.RetryConfig
java.lang.Object
org.apache.hadoop.hbase.util.RetryCounter.RetryConfig
- Enclosing class:
- RetryCounter
public static class RetryCounter.RetryConfig
- extends Object
Configuration for a retry counter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RetryCounter.RetryConfig
public RetryCounter.RetryConfig()
RetryCounter.RetryConfig
public RetryCounter.RetryConfig(int maxAttempts,
long sleepInterval,
long maxSleepTime,
TimeUnit timeUnit,
RetryCounter.BackoffPolicy backoffPolicy)
setBackoffPolicy
public RetryCounter.RetryConfig setBackoffPolicy(RetryCounter.BackoffPolicy backoffPolicy)
setMaxAttempts
public RetryCounter.RetryConfig setMaxAttempts(int maxAttempts)
setMaxSleepTime
public RetryCounter.RetryConfig setMaxSleepTime(long maxSleepTime)
setSleepInterval
public RetryCounter.RetryConfig setSleepInterval(long sleepInterval)
setTimeUnit
public RetryCounter.RetryConfig setTimeUnit(TimeUnit timeUnit)
getMaxAttempts
public int getMaxAttempts()
getMaxSleepTime
public long getMaxSleepTime()
getSleepInterval
public long getSleepInterval()
getTimeUnit
public TimeUnit getTimeUnit()
getBackoffPolicy
public RetryCounter.BackoffPolicy getBackoffPolicy()
Copyright © 2015 The Apache Software Foundation. All Rights Reserved.