public interface RetryStrategy
| Modifier and Type | Method and Description |
|---|---|
RetryStrategy |
clone()
返回一个同类型且尚未重试的RetryStrategy对象。
|
int |
getRetries()
返回当前重试的次数
|
long |
nextPause(String action,
Exception ex)
得到发起第retries次重试前延迟的时间。SDK会在这一段时间之后发起第retries次重试。
若返回值小于等于0, 表示不重试.
|
RetryStrategy clone()
int getRetries()
Copyright © 2024. All Rights Reserved.