Interface RetryStrategy.RetryCallback

Enclosing interface:
RetryStrategy

public static interface RetryStrategy.RetryCallback
重試回調介面,用於追蹤重試狀態
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onRetry(int attemptNumber, int remainingRetries, Exception exception)
    重試發生時調用
  • Method Details

    • onRetry

      void onRetry(int attemptNumber, int remainingRetries, Exception exception)
      重試發生時調用
      Parameters:
      attemptNumber - 嘗試次數(從 0 開始)
      remainingRetries - 剩餘重試次數
      exception - 導致重試的異常