Interface RetryHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Callback invoked on each retry attempt, before publishing the RETRYING event. Use for logging, metrics, or other side
effects. Not called during replay.
- Since:
- 5.4.0
- Author:
- Stefan Dragisic
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RetryHandlerRetry handler that performs no side effects. -
Method Summary
Modifier and TypeMethodDescriptionvoidonRetry(RetryContext context) Invoked when a retry attempt is about to be published and executed.
-
Field Details
-
NOOP
Retry handler that performs no side effects.
-
-
Method Details
-
onRetry
Invoked when a retry attempt is about to be published and executed.- Parameters:
context- retry context describing the step, attempt, and triggering failure
-