Skip to content

Conversation

NJAldwin
Copy link

This adds a variant of the exponential wait strategy that waits for a
random time between the minimum provided time and an exponentially
increasing maximum time (under a maximum provided time). This is
similar to https://en.wikipedia.org/wiki/Exponential_backoff

See #28

This adds a variant of the exponential wait strategy that waits for a
random time between the minimum provided time and an exponentially
increasing maximum time (under a maximum provided time).  This is
similar to https://en.wikipedia.org/wiki/Exponential_backoff
@NJAldwin
Copy link
Author

@rholder any chance you'll be able to take a look at this sometime relatively soon? (no rush, just wondering if I should just implement this in our code for now or wait for this to be merged)

@rholder
Copy link
Owner

rholder commented Dec 28, 2015

This looks pretty good, and it's first on my TODO list of maintenance when I circle back to this project. I should have bandwidth to ship something this week. Keep pinging this issue as a reminder if you don't see some movement soon.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume you used a private static final Random for consistency with the existing code; I wonder if it's worth switching over to a shared ThreadLocalRandom?

@skwslide
Copy link

Any chance of committing and releasing this feature soon? Thanks.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants