Wondering if there's a real use case for exponential back off policy. It's the only stateful backoff policy, and if it doesn't offer significant advantage over the fixed policy, I would argue that there was no reason to have separate BackOffPolicy/BackOffContext participants as opposed to adding:
to the RetryPolicy interface, or even just having a "backOffInterval" field that specifies the back off time in seconds (0 for no back off).Code:void backOff(RetryContext context) throws RetryInterruptedException;


Reply With Quote