Package org.apache.hadoop.hbase.util
Class RetryCounter.RetryConfig
java.lang.Object
org.apache.hadoop.hbase.util.RetryCounter.RetryConfig
- Enclosing class:
- RetryCounter
Configuration for a retry counter
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate RetryCounter.BackoffPolicyprivate static final RetryCounter.BackoffPolicyprivate floatprivate intprivate longprivate longprivate TimeUnit
- 
Constructor SummaryConstructorsConstructorDescriptionRetryConfig(int maxAttempts, long sleepInterval, long maxSleepTime, TimeUnit timeUnit, RetryCounter.BackoffPolicy backoffPolicy) 
- 
Method SummaryModifier and TypeMethodDescriptionfloatintlonglongsetBackoffPolicy(RetryCounter.BackoffPolicy backoffPolicy) setJitter(float jitter) setMaxAttempts(int maxAttempts) setMaxSleepTime(long maxSleepTime) setSleepInterval(long sleepInterval) setTimeUnit(TimeUnit timeUnit) 
- 
Field Details- 
maxAttempts
- 
sleepInterval
- 
maxSleepTime
- 
timeUnit
- 
backoffPolicy
- 
jitter
- 
DEFAULT_BACKOFF_POLICY
 
- 
- 
Constructor Details- 
RetryConfigpublic RetryConfig()
- 
RetryConfigpublic RetryConfig(int maxAttempts, long sleepInterval, long maxSleepTime, TimeUnit timeUnit, RetryCounter.BackoffPolicy backoffPolicy) 
 
- 
- 
Method Details- 
setBackoffPolicy
- 
setMaxAttempts
- 
setMaxSleepTime
- 
setSleepInterval
- 
setTimeUnit
- 
setJitter
- 
getMaxAttempts
- 
getMaxSleepTime
- 
getSleepInterval
- 
getTimeUnit
- 
getJitter
- 
getBackoffPolicy
 
-