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 a configurable RetryPolicy to the HereAccessTokenProvider, that by default retries socket and 5xx errors with backoff #62

Open
kenmccracken opened this issue Jun 21, 2019 · 0 comments

Comments

@kenmccracken
Copy link
Contributor

Add a configurable RetryPolicy to the HereAccessTokenProvider, that by default retries socket and 5xx errors up to 2x with backoff.

This would allow, particularly when using HereAccessTokenProvider.Builder.setAlwaysRequestNewToken(true), some additional client-side resilience to network hiccups or expected low-probability failures server-side.

The DefaultRetryPolicy can then be chosen from java.util.Random using exponential random backoff starting with [0,200] ms, with up to 3 max attempts. Or, other suitable alternative.

@kenmccracken kenmccracken changed the title Add a configurable RetryPolicy to the HereAccessTokenProvider, that by default retries socket and 5xx errors up to 3x with backoff Add a configurable RetryPolicy to the HereAccessTokenProvider, that by default retries socket and 5xx errors with backoff Jun 21, 2019
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