接口 RetryPolicy
-
- 所有已知实现类:
AbstractRetryPolicy,RetryNTimes
public interface RetryPolicy
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 booleanshouldRetry(int retried, long elapsed, boolean sleep)Whether retry is supported when operation fails.
-
-
-
方法详细资料
-
shouldRetry
boolean shouldRetry(int retried, long elapsed, boolean sleep)Whether retry is supported when operation fails.- 参数:
retried- the number of times retried so farelapsed- the elapsed time in millisecond since the operation was attemptedsleep- should be sleep- 返回:
- true should be retry
-
-