re-retrying
re-retrying copied to clipboard
A Java library to allow for the creation of configurable retrying strategies for an arbitrary function call, such as something that communicates with a remote service with flaky uptime.
`RetryException` implements `Serialzable`, but does not fulfill the contract, because it has a field `Attempt`: https://github.com/rhuffman/re-retrying/blob/5c75a68acd87989fe93c605d205f420471d2144f/src/main/java/com/github/rholder/retry/RetryException.java#L32-L34 which does not implement `Serializable`: https://github.com/rhuffman/re-retrying/blob/5c75a68acd87989fe93c605d205f420471d2144f/src/main/java/com/github/rholder/retry/Attempt.java#L30-L38 as well as being generic, which makes it...
This would be nice for testing (e.g. to assert that the correct strategy has been chosen). Thanks.
I have list of callables and then using ExecutorService I am invoking the list of callables. Where should I be putting the retryer code. I have placed it here but...
In a current project I have a RetryListener that provides debug output for each retry. I would really like for it to log when the next attempt will be made...