Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ExponentialRandomBackOffPolicy [SPR-17477] #22009

Open
spring-projects-issues opened this issue Nov 7, 2018 · 0 comments
Open

Add ExponentialRandomBackOffPolicy [SPR-17477] #22009

spring-projects-issues opened this issue Nov 7, 2018 · 0 comments
Labels
in: core type: enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Nov 7, 2018

Sam Mefford opened SPR-17477 and commented

While Spring Retry has an ExponentialRandomBackOffPolicy, Spring org.springframework.util.backoff only has ExponentialBackOff, with no random features.  Since org.springframework.util.backoff is reusable on many projects (such as with RestTemplate, see #17922), this functionality could be generally useful.  

Since Spring Retry isn't async, its utility is limited.  And Spring Retry's ExponentialRandomBackOffPolicy is tied to its blocking implementation, with a call to Thread.sleep hard-coded in the only Sleeper implementation. 

It could be beneficial for use cases which require async to have access to a general-purpose ExponentialRandomBackOffPolicy implementation.


Reference URL: https://github.com/spring-projects/spring-retry/blob/master/src/main/java/org/springframework/retry/backoff/ExponentialRandomBackOffPolicy.java

@spring-projects-issues spring-projects-issues added type: enhancement in: core labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 5.x Backlog milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core type: enhancement
Projects
None yet
Development

No branches or pull requests

1 participant