spring-retry
spring-retry copied to clipboard
Add BackOffByExceptionTypePolicy to backoff by exception type
This PR is an attempt to support a backoff policy based on the exception type thrown. It's similar to how we have a different retry policy based on the exception thrown.
I've noticed that one of the serialization tests fails. This serialization requirement is not clear to me but perhaps it explains why such a backoff policy has not already been provided. If anyone could provide any ideas about how to support the serialization requirement that would be great.