类 AbstractRetryPolicy
- java.lang.Object
-
- org.apache.dubbo.remoting.etcd.AbstractRetryPolicy
-
- 所有已实现的接口:
RetryPolicy
- 直接已知子类:
RetryNTimes
public abstract class AbstractRetryPolicy extends Object implements RetryPolicy
-
-
方法详细资料
-
shouldRetry
public boolean shouldRetry(int retried, long elapsed, boolean sleep)从接口复制的说明:RetryPolicyWhether retry is supported when operation fails.- 指定者:
shouldRetry在接口中RetryPolicy- 参数:
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
-
-