retryOptions.setMaxRetryWaitTimeInSeconds(this.getIntProperty( "azurecosmos.maxRetryWaitTimeInSeconds", retryOptions.getMaxRetryWaitTimeInSeconds())); connectionPolicy.setRetryOptions(retryOptions); consistencyLevel.toString(), connectionPolicy.getRetryOptions().getMaxRetryAttemptsOnThrottledRequests(), connectionPolicy.getRetryOptions().getMaxRetryWaitTimeInSeconds(), this.useSinglePartitionCollection, this.useUpsert,
public ExecuteDocumentClientRequestRetryHandler(RxDocumentServiceRequest request, EndpointManager globalEndpointManager, AsyncDocumentClient client) { this.discoveryRetryPolicy = RetryPolicyBridgeInternal.createEndpointDiscoveryRetryPolicy( client.getConnectionPolicy(), globalEndpointManager); this.throttleRetryPolicy = RetryPolicyBridgeInternal.createResourceThrottleRetryPolicy( client.getConnectionPolicy().getRetryOptions().getMaxRetryAttemptsOnThrottledRequests(), client.getConnectionPolicy().getRetryOptions().getMaxRetryWaitTimeInSeconds()); this.sessionReadRetryPolicy = RetryPolicyBridgeInternal.createSessionReadRetryPolicy( globalEndpointManager, request); }