Delen via


CosmosEndToEndOperationLatencyPolicyConfig Class

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

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
AvailabilityStrategy 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:

the availability strategy to be used for the policy

getEndToEndOperationTimeout

public Duration getEndToEndOperationTimeout()

Gets the defined end to end operatoin timeout

Returns:

the end to end operation timeout

isEnabled

public boolean isEnabled()

Returns if the policy is enabled or not

Returns:

if the policy is enabled or not

toString

public String toString()

Overrides:

CosmosEndToEndOperationLatencyPolicyConfig.toString()

Applies to