Package com.azure.cosmos
Class ThresholdBasedAvailabilityStrategy
java.lang.Object
com.azure.cosmos.AvailabilityStrategy
com.azure.cosmos.ThresholdBasedAvailabilityStrategy
The type Threshold based retry availability strategy.
-
Constructor Summary
ConstructorDescriptionInstantiates a new Threshold based retry availability strategy.ThresholdBasedAvailabilityStrategy
(Duration threshold, Duration thresholdStep) Instantiates a new Threshold based retry availability strategy. -
Method Summary
-
Constructor Details
-
ThresholdBasedAvailabilityStrategy
public ThresholdBasedAvailabilityStrategy()Instantiates a new Threshold based retry availability strategy. -
ThresholdBasedAvailabilityStrategy
Instantiates a new Threshold based retry availability strategy.- Parameters:
threshold
- the threshold at which the request has to be tried on next regionthresholdStep
- the threshold step at which the request has to be tried on subsequent regions
-
-
Method Details