public static class RetryUtils.RetryMaterial extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static long |
MAX_RETRY_TIME
The maximum retry time.
|
static long |
MAX_RETRY_TIME_MS
An arbitrary absolute maximum practical retry time.
|
| 构造器和说明 |
|---|
RetryMaterial(int retryTimes,
boolean shouldThrowException,
RetryUtils.RetryCondition<Exception> retryCondition) |
RetryMaterial(int retryTimes,
boolean shouldThrowException,
RetryUtils.RetryCondition<Exception> retryCondition,
long sleepTimeMillis) |
RetryMaterial(int retryTimes,
boolean shouldThrowException,
RetryUtils.RetryCondition<Exception> retryCondition,
long sleepTimeMillis,
boolean sleepTimeIncrease) |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
computeRetryWaitTimeMillis(int retryAttempts) |
RetryUtils.RetryCondition<Exception> |
getRetryCondition() |
int |
getRetryTimes() |
long |
getSleepTimeMillis() |
boolean |
shouldThrowException() |
public static final long MAX_RETRY_TIME_MS
public static final long MAX_RETRY_TIME
public RetryMaterial(int retryTimes,
boolean shouldThrowException,
RetryUtils.RetryCondition<Exception> retryCondition)
public RetryMaterial(int retryTimes,
boolean shouldThrowException,
RetryUtils.RetryCondition<Exception> retryCondition,
long sleepTimeMillis)
public RetryMaterial(int retryTimes,
boolean shouldThrowException,
RetryUtils.RetryCondition<Exception> retryCondition,
long sleepTimeMillis,
boolean sleepTimeIncrease)
public int getRetryTimes()
public boolean shouldThrowException()
public RetryUtils.RetryCondition<Exception> getRetryCondition()
public long getSleepTimeMillis()
public long computeRetryWaitTimeMillis(int retryAttempts)
Copyright © 2023 The Apache Software Foundation. All rights reserved.