Replies: 1 comment 6 replies
-
In SmallRye Fault Tolerance, we have |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Retry doesn't have any way to call a side method for lifecycle stage or retry attempt. I think it could be a good idea. Right now the only solution seems to be the aspect (AOP) approach.
Consider the following. There is a fallback if all retries fail, but what if I want enhanced logging or notifications if retries occur, including the context surrounding failures/successes?
What if we had something like the following:
RetryContext
could contain information like incoming data, the retry count, previous context (if any) etc.Alternatively, using annotations:
@OnRetryStart
@OnRetryComplete
@OnRetryFailure
@OnRetrySuccess
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions