spring-retry icon indicating copy to clipboard operation
spring-retry copied to clipboard

Adding onNext in RetryListener

Open MFomichev opened this issue 4 years ago • 1 comments

I would like to have the opportunity to listen an event before each retry (including the first one) would be happend in order to add some information to MDC (retry number). I can do it by onError, however that does not represent the actual scenario.

If you do not mind about this functionality, then I will be happy to provide PR.

MFomichev avatar Jan 26 '21 12:01 MFomichev

You could just use the existing methods for this, I guess, but you just want a neater way to do it as a one liner?

dsyer avatar Jun 14 '21 13:06 dsyer