spring-framework
spring-framework copied to clipboard
Add validation support for FixedBackOff and ExponentialBackOff
When creating a BackOff instance via RetryPolicy, we get validation for the individual attributes. However, when creating the BackOff implementation manually, there's no such validation.
This makes the use of the implementation a bit cumbersome as we have to replicate the validation rules the builder offers.