Interface EmailRetryExecutor.RetryCallback

Enclosing class:
EmailRetryExecutor
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface EmailRetryExecutor.RetryCallback
Retry callback interface 重试回调接口
Since:
JDK 25, opencode-base-email V1.0.0
Author:
Leon Soo www.LeonSoo.com
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onRetry(int attempt, EmailException exception)
    Called on each retry attempt 每次重试时调用
  • Method Details

    • onRetry

      void onRetry(int attempt, EmailException exception)
      Called on each retry attempt 每次重试时调用
      Parameters:
      attempt - the attempt number (1-based) | 尝试次数(从1开始)
      exception - the exception that caused the retry | 导致重试的异常