Class ConsistencyPolicyResponse


  • public final class ConsistencyPolicyResponse
    extends java.lang.Object
    • Method Detail

      • defaultConsistencyLevel

        public java.lang.String defaultConsistencyLevel()
        Returns:
        The default consistency level and configuration settings of the Cosmos DB account.
      • maxIntervalInSeconds

        public java.util.Optional<java.lang.Integer> maxIntervalInSeconds()
        Returns:
        When used with the Bounded Staleness consistency level, this value represents the time amount of staleness (in seconds) tolerated. Accepted range for this value is 5 - 86400. Required when defaultConsistencyPolicy is set to 'BoundedStaleness'.
      • maxStalenessPrefix

        public java.util.Optional<java.lang.Double> maxStalenessPrefix()
        Returns:
        When used with the Bounded Staleness consistency level, this value represents the number of stale requests tolerated. Accepted range for this value is 1 – 2,147,483,647. Required when defaultConsistencyPolicy is set to 'BoundedStaleness'.