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

fix:dev:INFRA-2843: Updating number of retries #115

Merged
merged 1 commit into from
Apr 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public DefaultQdsConfiguration(String apiEndpoint, String apiToken, String apiVe
/**
* @param apiEndpoint endpoint
* @param apiToken your API token
* @param maxRetries number of re-attempts for an api-call in case of retryable exceptions. defaults to 6.
* @param maxRetries number of re-attempts for an api-call in case of retryable exceptions. defaults to 7.
* @param baseRetryDelay base sleep interval for exponential backoff in case of retryable exceptions. defaults to 10s.
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class StandardRetryPolicy implements RetryPolicy

private final int maxRetries;

private static final int DEFAULT_MAX_RETRIES = 6;
private static final int DEFAULT_MAX_RETRIES = 7;

public StandardRetryPolicy()
{
Expand All @@ -38,7 +38,7 @@ public StandardRetryPolicy()

public StandardRetryPolicy(int maxRetries)
{
this.maxRetries = Math.min(6, maxRetries);
this.maxRetries = Math.min(7, maxRetries);
}

@SuppressWarnings("SimplifiableIfStatement")
Expand Down