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 Summary
FieldsModifier and TypeFieldDescriptionprivate RetryCounter.BackoffPolicyprivate static final RetryCounter.BackoffPolicyprivate floatprivate intprivate longprivate longprivate TimeUnit - 
Constructor Summary
ConstructorsConstructorDescriptionRetryConfig(int maxAttempts, long sleepInterval, long maxSleepTime, TimeUnit timeUnit, RetryCounter.BackoffPolicy backoffPolicy)  - 
Method Summary
Modifier 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
- 
RetryConfig
public RetryConfig() - 
RetryConfig
public 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
 
 -