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