Class CosmosEndToEndOperationLatencyPolicyConfig

java.lang.Object
com.azure.cosmos.CosmosEndToEndOperationLatencyPolicyConfig

public final class CosmosEndToEndOperationLatencyPolicyConfig extends Object
Represents End to end operation latency policy config This enables requests to get cancelled by the client once the specified timeout is reached
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Returns if the policy is enabled or not
      Returns:
      if the policy is enabled or not
    • getEndToEndOperationTimeout

      public Duration getEndToEndOperationTimeout()
      Gets the defined end to end operatoin timeout
      Returns:
      the end to end operation timeout
    • getAvailabilityStrategy

      public AvailabilityStrategy getAvailabilityStrategy()
      Gets the availability strategy to be used for the policy.
      Returns:
      the availability strategy to be used for the policy
    • toString

      public String toString()
      Overrides:
      toString in class Object