Skip to content

Add a configurable RetryPolicy to the HereAccessTokenProvider, that by default retries socket and 5xx errors with backoff #62

Description

@kenmccracken

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions