类 AbstractRetryPolicy

    • 方法详细资料

      • shouldRetry

        public boolean shouldRetry​(int retried,
                                   long elapsed,
                                   boolean sleep)
        从接口复制的说明: RetryPolicy
        Whether retry is supported when operation fails.
        指定者:
        shouldRetry 在接口中 RetryPolicy
        参数:
        retried - the number of times retried so far
        elapsed - the elapsed time in millisecond since the operation was attempted
        sleep - should be sleep
        返回:
        true should be retry