Package com.azure.cosmos
Class CosmosEndToEndOperationLatencyPolicyConfig
java.lang.Object
com.azure.cosmos.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 TypeMethodDescriptionGets the availability strategy to be used for the policy.Gets the defined end to end operatoin timeoutboolean
Returns if the policy is enabled or nottoString()
-
Method Details
-
isEnabled
public boolean isEnabled()Returns if the policy is enabled or not- Returns:
- if the policy is enabled or not
-
getEndToEndOperationTimeout
Gets the defined end to end operatoin timeout- Returns:
- the end to end operation timeout
-
getAvailabilityStrategy
Gets the availability strategy to be used for the policy.- Returns:
- the availability strategy to be used for the policy
-
toString
-