Package | Description |
---|---|
io.sphere.sdk.client.retry |
Modifier and Type | Method and Description |
---|---|
static RetryableSphereClientBuilder |
RetryableSphereClientBuilder.of(SphereClientConfig sphereClientConfig,
HttpClient httpClient)
Creates a new instance of
RetryableSphereClientBuilder given a SphereClientConfig
responsible for creation of a SphereClient. |
RetryableSphereClientBuilder |
RetryableSphereClientBuilder.withInitialDelay(long initialDelay)
Sets the initialDelay value in milliseconds.
|
RetryableSphereClientBuilder |
RetryableSphereClientBuilder.withMaxDelay(long maxDelay)
Sets the maxDelay value value in milliseconds.
|
RetryableSphereClientBuilder |
RetryableSphereClientBuilder.withMaxParallelRequests(int maxParallelRequests)
Sets the Max Parallel Requests value, It should be always positive number.
|
RetryableSphereClientBuilder |
RetryableSphereClientBuilder.withMaxRetryAttempt(int maxRetryAttempt)
Sets the Max Retry value, It should be greater than 1 for the Retry attempt.
|
RetryableSphereClientBuilder |
RetryableSphereClientBuilder.withStatusCodesToRetry(List<Integer> statusCodesToRetry)
Sets the Retry Error Status Codes.
|