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
Modifier and TypeFieldDescriptionprivate RetryCounter.BackoffPolicy
private static final RetryCounter.BackoffPolicy
private float
private int
private long
private long
private TimeUnit
-
Constructor Summary
ConstructorDescriptionRetryConfig
(int maxAttempts, long sleepInterval, long maxSleepTime, TimeUnit timeUnit, RetryCounter.BackoffPolicy backoffPolicy) -
Method Summary
Modifier and TypeMethodDescriptionfloat
int
long
long
setBackoffPolicy
(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
-