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

Execution Scoped RetryPolicy #71

Open
ryanjbaxter opened this issue Dec 22, 2016 · 0 comments
Open

Execution Scoped RetryPolicy #71

ryanjbaxter opened this issue Dec 22, 2016 · 0 comments

Comments

@ryanjbaxter
Copy link

I have come across a use case where I need to create a different RetryPolicy for each RetryTemplate.execute call. In my use case I am making an HTTP call that I want to retry but the RetryPolicy for that execution is based on information from the HTTP request being made. Given that we could be making multiple HTTP requests at the same time using a simple RetryTemplate is out of question because in theory we could be switching the RetryPolicy before a single request gets a chance to finish. I am wondering if others might think it would be useful to support a RetryPolicy for a given execution in addition to a global RetryPolicy for the template itself?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants