### YamlMime:JavaType
uid: "com.azure.cosmos.ThresholdBasedAvailabilityStrategy"
fullName: "com.azure.cosmos.ThresholdBasedAvailabilityStrategy"
name: "ThresholdBasedAvailabilityStrategy"
nameWithType: "ThresholdBasedAvailabilityStrategy"
summary: "The type Threshold based retry availability strategy."
inheritances:
- ""
- ""
inheritedClassMethods:
- classRef: "java.lang.Object"
methodsRef:
- "clone"
- "equals"
- "finalize"
- "getClass"
- "hashCode"
- "notify"
- "notifyAll"
- "toString"
- "wait"
- "wait"
- "wait"
syntax: "public final class **ThresholdBasedAvailabilityStrategy** extends "
constructors:
- uid: "com.azure.cosmos.ThresholdBasedAvailabilityStrategy.ThresholdBasedAvailabilityStrategy()"
fullName: "com.azure.cosmos.ThresholdBasedAvailabilityStrategy.ThresholdBasedAvailabilityStrategy()"
name: "ThresholdBasedAvailabilityStrategy()"
nameWithType: "ThresholdBasedAvailabilityStrategy.ThresholdBasedAvailabilityStrategy()"
summary: "Instantiates a new Threshold based retry availability strategy."
syntax: "public ThresholdBasedAvailabilityStrategy()"
desc: "Instantiates a new Threshold based retry availability strategy."
- uid: "com.azure.cosmos.ThresholdBasedAvailabilityStrategy.ThresholdBasedAvailabilityStrategy(java.time.Duration,java.time.Duration)"
fullName: "com.azure.cosmos.ThresholdBasedAvailabilityStrategy.ThresholdBasedAvailabilityStrategy(Duration threshold, Duration thresholdStep)"
name: "ThresholdBasedAvailabilityStrategy(Duration threshold, Duration thresholdStep)"
nameWithType: "ThresholdBasedAvailabilityStrategy.ThresholdBasedAvailabilityStrategy(Duration threshold, Duration thresholdStep)"
summary: "Instantiates a new Threshold based retry availability strategy."
parameters:
- description: "the threshold at which the request has to be tried on next region"
name: "threshold"
type: "Duration"
- description: "the threshold step at which the request has to be tried on subsequent regions"
name: "thresholdStep"
type: "Duration"
syntax: "public ThresholdBasedAvailabilityStrategy(Duration threshold, Duration thresholdStep)"
desc: "Instantiates a new Threshold based retry availability strategy."
methods:
- uid: "com.azure.cosmos.ThresholdBasedAvailabilityStrategy.getThreshold()"
fullName: "com.azure.cosmos.ThresholdBasedAvailabilityStrategy.getThreshold()"
name: "getThreshold()"
nameWithType: "ThresholdBasedAvailabilityStrategy.getThreshold()"
summary: "Gets threshold."
syntax: "public Duration getThreshold()"
desc: "Gets threshold."
returns:
description: "the threshold"
type: "Duration"
- uid: "com.azure.cosmos.ThresholdBasedAvailabilityStrategy.getThresholdStep()"
fullName: "com.azure.cosmos.ThresholdBasedAvailabilityStrategy.getThresholdStep()"
name: "getThresholdStep()"
nameWithType: "ThresholdBasedAvailabilityStrategy.getThresholdStep()"
summary: "Gets threshold step."
syntax: "public Duration getThresholdStep()"
desc: "Gets threshold step."
returns:
description: "the threshold step"
type: "Duration"
- uid: "com.azure.cosmos.ThresholdBasedAvailabilityStrategy.toString()"
fullName: "com.azure.cosmos.ThresholdBasedAvailabilityStrategy.toString()"
name: "toString()"
nameWithType: "ThresholdBasedAvailabilityStrategy.toString()"
overridden: "java.lang.Object.toString()"
syntax: "public String toString()"
returns:
type: "String"
type: "class"
desc: "The type Threshold based retry availability strategy."
metadata: {}
package: "com.azure.cosmos"
artifact: com.azure:azure-cosmos:4.63.4