public interface ClientConfiguration
| Modifier and Type | Method and Description |
|---|---|
int |
getBackOffFactor()
To use in calculation of wait time for next request in case of failure.
|
okhttp3.OkHttpClient |
getHttpClientInstance()
The OkHttpClient instance used to make the HTTP calls.
|
Set<Method> |
getHttpMethodsToRetry()
Http methods to retry against.
|
Set<Integer> |
getHttpStatusCodesToRetry()
Http status codes to retry against.
|
long |
getMaximumRetryWaitTime()
The maximum wait time for overall retrying requests.
|
int |
getNumberOfRetries()
The number of retries to make.
|
long |
getRetryInterval()
To use in calculation of wait time for next request in case of failure.
|
long |
getTimeout()
The timeout in seconds to use for making HTTP requests.
|
boolean |
shouldOverrideHttpClientConfigurations()
Allow the SDK to override HTTP client instance's settings used for features like retries,
timeouts etc.
|
boolean |
shouldRetryOnTimeout()
Whether to retry on request timeout.
|
boolean |
skipSslCertVerification()
Allow or prevent skipping SSL certificate verification.
|
long getTimeout()
int getNumberOfRetries()
int getBackOffFactor()
long getRetryInterval()
Set<Integer> getHttpStatusCodesToRetry()
Set<Method> getHttpMethodsToRetry()
long getMaximumRetryWaitTime()
boolean shouldRetryOnTimeout()
okhttp3.OkHttpClient getHttpClientInstance()
boolean shouldOverrideHttpClientConfigurations()
boolean skipSslCertVerification()
Copyright © 2022. All rights reserved.