public static class RetryCounter.RetryConfig extends Object
Constructor and Description |
---|
RetryCounter.RetryConfig() |
RetryCounter.RetryConfig(int maxAttempts,
long sleepInterval,
long maxSleepTime,
TimeUnit timeUnit,
RetryCounter.BackoffPolicy backoffPolicy) |
Modifier and Type | Method and Description |
---|---|
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) |
public RetryCounter.RetryConfig()
public RetryCounter.RetryConfig(int maxAttempts, long sleepInterval, long maxSleepTime, TimeUnit timeUnit, RetryCounter.BackoffPolicy backoffPolicy)
public RetryCounter.RetryConfig setBackoffPolicy(RetryCounter.BackoffPolicy backoffPolicy)
public RetryCounter.RetryConfig setMaxAttempts(int maxAttempts)
public RetryCounter.RetryConfig setMaxSleepTime(long maxSleepTime)
public RetryCounter.RetryConfig setSleepInterval(long sleepInterval)
public RetryCounter.RetryConfig setTimeUnit(TimeUnit timeUnit)
public int getMaxAttempts()
public long getMaxSleepTime()
public long getSleepInterval()
public TimeUnit getTimeUnit()
public RetryCounter.BackoffPolicy getBackoffPolicy()
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.