Package google.registry.util
Interface Retrier.FailureReporter
- Enclosing class:
Retrier
public static interface Retrier.FailureReporter
Holds functions to call whenever the code being retried fails.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
beforeRetry
(Throwable thrown, int failures, int maxAttempts) Called after a retriable failure happened.
-
Method Details
-
beforeRetry
Called after a retriable failure happened.Not called after the final failure, nor if the Throwable thrown isn't "a retriable error".
Not called at all if the retrier succeeded on its first attempt.
-