public static final class CosmosRetryPolicy.Builder extends Object
CosmosRetryPolicy objects.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CosmosRetryPolicy |
build()
Constructs a new
CosmosRetryPolicy object. |
CosmosRetryPolicy.Builder |
withFixedBackOffTimeInMillis(int value)
Sets the value of the fixed backoff time in milliseconds.
|
CosmosRetryPolicy.Builder |
withGrowingBackOffTimeInMillis(int value)
Sets the value of the growing backoff time in milliseconds.
|
CosmosRetryPolicy.Builder |
withMaxRetryCount(int value)
Sets the value of the maximum retry count.
|
public CosmosRetryPolicy build()
CosmosRetryPolicy object.CosmosRetryPolicy object.public CosmosRetryPolicy.Builder withFixedBackOffTimeInMillis(int value)
value - fixed backoff time in milliseconds.CosmosLoadBalancingPolicy.Builder.public CosmosRetryPolicy.Builder withGrowingBackOffTimeInMillis(int value)
value - growing backoff time in milliseconds.CosmosLoadBalancingPolicy.Builder.public CosmosRetryPolicy.Builder withMaxRetryCount(int value)
value - maximum retry count.CosmosLoadBalancingPolicy.Builder.Copyright © 2021. All rights reserved.