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

For logging purposes, provide approximate delay until next retry #19

Open
rhuffman opened this issue Oct 4, 2017 · 0 comments
Open

Comments

@rhuffman
Copy link
Owner

rhuffman commented Oct 4, 2017

In a current project I have a RetryListener that provides debug output for each retry. I would really like for it to log when the next attempt will be made (if any). However, the Attempt does not contain that data.

A WaitStrategy, given the most recent failed Attempt, calculates the amount of time the Retryer should sleep before making another attempt. If the ResultAttempt and ExceptionAttempt took the WaitStrategy, the delay before the next retry could be calculated and saved as a field. Then the RetryListener could log that.

@rhuffman rhuffman changed the title For logging purposes, it would be nice if an Attempt provided the approximate delay until the next retry For logging purposes, provide approximate delay until next retry Dec 18, 2017
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

1 participant