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.
Retry callback interface
重试回调接口
- Since:
- JDK 25, opencode-base-email V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Method Summary
Modifier and TypeMethodDescriptionvoidonRetry(int attempt, EmailException exception) Called on each retry attempt 每次重试时调用
-
Method Details
-
onRetry
Called on each retry attempt 每次重试时调用- Parameters:
attempt- the attempt number (1-based) | 尝试次数(从1开始)exception- the exception that caused the retry | 导致重试的异常
-