public static class RetryCounter.RetryConfig extends Object
构造器和说明 |
---|
RetryConfig() |
RetryConfig(int maxAttempts,
long sleepInterval,
long maxSleepTime,
TimeUnit timeUnit,
RetryCounter.BackoffPolicy backoffPolicy) |
限定符和类型 | 方法和说明 |
---|---|
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 RetryConfig()
public 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–2018 The Apache Software Foundation. All rights reserved.