org.apache.hadoop.hbase.util
Class RetryCounter.RetryConfig

java.lang.Object
  extended by org.apache.hadoop.hbase.util.RetryCounter.RetryConfig
Enclosing class:
RetryCounter

public static class RetryCounter.RetryConfig
extends Object

Configuration for a retry counter


Constructor Summary
RetryCounter.RetryConfig()
           
RetryCounter.RetryConfig(int maxAttempts, long sleepInterval, long maxSleepTime, TimeUnit timeUnit, RetryCounter.BackoffPolicy backoffPolicy)
           
 
Method Summary
 RetryCounter.BackoffPolicy getBackoffPolicy()
           
 int getMaxAttempts()
           
 long getMaxSleepTime()
           
 long getSleepInterval()
           
 TimeUnit getTimeUnit()
           
 RetryCounter.RetryConfig setBackoffPolicy(RetryCounter.BackoffPolicy backoffPolicy)
           
 RetryCounter.RetryConfig setMaxAttempts(int maxAttempts)
           
 RetryCounter.RetryConfig setMaxSleepTime(long maxSleepTime)
           
 RetryCounter.RetryConfig setSleepInterval(long sleepInterval)
           
 RetryCounter.RetryConfig setTimeUnit(TimeUnit timeUnit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RetryCounter.RetryConfig

public RetryCounter.RetryConfig()

RetryCounter.RetryConfig

public RetryCounter.RetryConfig(int maxAttempts,
                                long sleepInterval,
                                long maxSleepTime,
                                TimeUnit timeUnit,
                                RetryCounter.BackoffPolicy backoffPolicy)
Method Detail

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 © 2007-2015 The Apache Software Foundation. All Rights Reserved.