CosmosEndToEndOperationLatencyPolicyConfig Class
- java.
lang. Object - com.
azure. cosmos. CosmosEndToEndOperationLatencyPolicyConfig
- com.
public final class CosmosEndToEndOperationLatencyPolicyConfig
Represents End to end operation latency policy config This enables requests to get cancelled by the client once the specified timeout is reached
Method Summary
Modifier and Type | Method and Description |
---|---|
Availability |
getAvailabilityStrategy()
Gets the availability strategy to be used for the policy. |
Duration |
getEndToEndOperationTimeout()
Gets the defined end to end operatoin timeout |
boolean |
isEnabled()
Returns if the policy is enabled or not |
String | toString() |
Methods inherited from java.lang.Object
Method Details
getAvailabilityStrategy
public AvailabilityStrategy getAvailabilityStrategy()
Gets the availability strategy to be used for the policy.
Returns:
getEndToEndOperationTimeout
public Duration getEndToEndOperationTimeout()
Gets the defined end to end operatoin timeout
Returns:
isEnabled
public boolean isEnabled()
Returns if the policy is enabled or not
Returns:
toString
public String toString()
Overrides:
CosmosEndToEndOperationLatencyPolicyConfig.toString()