azure-docs-sdk-java/docs-ref-autogen/com.azure.resourcemanager.c...

113 строки
8.7 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.resourcemanager.cosmos.models.ConsistencyPolicy"
fullName: "com.azure.resourcemanager.cosmos.models.ConsistencyPolicy"
name: "ConsistencyPolicy"
nameWithType: "ConsistencyPolicy"
summary: "The consistency policy for the Cosmos DB database account."
inheritances:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedMembers:
- "java.lang.Object.clone()"
- "java.lang.Object.equals(java.lang.Object)"
- "java.lang.Object.finalize()"
- "java.lang.Object.getClass()"
- "java.lang.Object.hashCode()"
- "java.lang.Object.notify()"
- "java.lang.Object.notifyAll()"
- "java.lang.Object.toString()"
- "java.lang.Object.wait()"
- "java.lang.Object.wait(long)"
- "java.lang.Object.wait(long,int)"
syntax: "public final class ConsistencyPolicy"
constructors:
- uid: "com.azure.resourcemanager.cosmos.models.ConsistencyPolicy.ConsistencyPolicy()"
fullName: "com.azure.resourcemanager.cosmos.models.ConsistencyPolicy.ConsistencyPolicy()"
name: "ConsistencyPolicy()"
nameWithType: "ConsistencyPolicy.ConsistencyPolicy()"
syntax: "public ConsistencyPolicy()"
methods:
- uid: "com.azure.resourcemanager.cosmos.models.ConsistencyPolicy.defaultConsistencyLevel()"
fullName: "com.azure.resourcemanager.cosmos.models.ConsistencyPolicy.defaultConsistencyLevel()"
name: "defaultConsistencyLevel()"
nameWithType: "ConsistencyPolicy.defaultConsistencyLevel()"
summary: "Get the default<wbr>Consistency<wbr>Level property: The default consistency level and configuration settings of the Cosmos DB account."
syntax: "public DefaultConsistencyLevel defaultConsistencyLevel()"
desc: "Get the defaultConsistencyLevel property: The default consistency level and configuration settings of the Cosmos DB account."
returns:
description: "the defaultConsistencyLevel value."
type: "<xref href=\"com.azure.resourcemanager.cosmos.models.DefaultConsistencyLevel?alt=com.azure.resourcemanager.cosmos.models.DefaultConsistencyLevel&text=DefaultConsistencyLevel\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.cosmos.models.ConsistencyPolicy.maxIntervalInSeconds()"
fullName: "com.azure.resourcemanager.cosmos.models.ConsistencyPolicy.maxIntervalInSeconds()"
name: "maxIntervalInSeconds()"
nameWithType: "ConsistencyPolicy.maxIntervalInSeconds()"
summary: "Get the max<wbr>Interval<wbr>InSeconds property: When used with the Bounded Staleness consistency level, this value represents the time amount of staleness (in seconds) tolerated."
syntax: "public Integer maxIntervalInSeconds()"
desc: "Get the maxIntervalInSeconds property: 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'."
returns:
description: "the maxIntervalInSeconds value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html\">Integer</a>"
- uid: "com.azure.resourcemanager.cosmos.models.ConsistencyPolicy.maxStalenessPrefix()"
fullName: "com.azure.resourcemanager.cosmos.models.ConsistencyPolicy.maxStalenessPrefix()"
name: "maxStalenessPrefix()"
nameWithType: "ConsistencyPolicy.maxStalenessPrefix()"
summary: "Get the max<wbr>Staleness<wbr>Prefix property: When used with the Bounded Staleness consistency level, this value represents the number of stale requests tolerated."
syntax: "public Long maxStalenessPrefix()"
desc: "Get the maxStalenessPrefix property: When used with the Bounded Staleness consistency level, this value represents the number of stale requests tolerated. Accepted range for this value is 1 \\\\u2013 2,147,483,647. Required when defaultConsistencyPolicy is set to 'BoundedStaleness'."
returns:
description: "the maxStalenessPrefix value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html\">Long</a>"
- uid: "com.azure.resourcemanager.cosmos.models.ConsistencyPolicy.validate()"
fullName: "com.azure.resourcemanager.cosmos.models.ConsistencyPolicy.validate()"
name: "validate()"
nameWithType: "ConsistencyPolicy.validate()"
summary: "Validates the instance."
syntax: "public void validate()"
desc: "Validates the instance."
- uid: "com.azure.resourcemanager.cosmos.models.ConsistencyPolicy.withDefaultConsistencyLevel(com.azure.resourcemanager.cosmos.models.DefaultConsistencyLevel)"
fullName: "com.azure.resourcemanager.cosmos.models.ConsistencyPolicy.withDefaultConsistencyLevel(DefaultConsistencyLevel defaultConsistencyLevel)"
name: "withDefaultConsistencyLevel(DefaultConsistencyLevel defaultConsistencyLevel)"
nameWithType: "ConsistencyPolicy.withDefaultConsistencyLevel(DefaultConsistencyLevel defaultConsistencyLevel)"
summary: "Set the default<wbr>Consistency<wbr>Level property: The default consistency level and configuration settings of the Cosmos DB account."
parameters:
- description: "the defaultConsistencyLevel value to set."
name: "defaultConsistencyLevel"
type: "<xref href=\"com.azure.resourcemanager.cosmos.models.DefaultConsistencyLevel?alt=com.azure.resourcemanager.cosmos.models.DefaultConsistencyLevel&text=DefaultConsistencyLevel\" data-throw-if-not-resolved=\"False\" />"
syntax: "public ConsistencyPolicy withDefaultConsistencyLevel(DefaultConsistencyLevel defaultConsistencyLevel)"
desc: "Set the defaultConsistencyLevel property: The default consistency level and configuration settings of the Cosmos DB account."
returns:
description: "the ConsistencyPolicy object itself."
type: "<xref href=\"com.azure.resourcemanager.cosmos.models.ConsistencyPolicy?alt=com.azure.resourcemanager.cosmos.models.ConsistencyPolicy&text=ConsistencyPolicy\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.cosmos.models.ConsistencyPolicy.withMaxIntervalInSeconds(java.lang.Integer)"
fullName: "com.azure.resourcemanager.cosmos.models.ConsistencyPolicy.withMaxIntervalInSeconds(Integer maxIntervalInSeconds)"
name: "withMaxIntervalInSeconds(Integer maxIntervalInSeconds)"
nameWithType: "ConsistencyPolicy.withMaxIntervalInSeconds(Integer maxIntervalInSeconds)"
summary: "Set the max<wbr>Interval<wbr>InSeconds property: When used with the Bounded Staleness consistency level, this value represents the time amount of staleness (in seconds) tolerated."
parameters:
- description: "the maxIntervalInSeconds value to set."
name: "maxIntervalInSeconds"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html\">Integer</a>"
syntax: "public ConsistencyPolicy withMaxIntervalInSeconds(Integer maxIntervalInSeconds)"
desc: "Set the maxIntervalInSeconds property: 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'."
returns:
description: "the ConsistencyPolicy object itself."
type: "<xref href=\"com.azure.resourcemanager.cosmos.models.ConsistencyPolicy?alt=com.azure.resourcemanager.cosmos.models.ConsistencyPolicy&text=ConsistencyPolicy\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.cosmos.models.ConsistencyPolicy.withMaxStalenessPrefix(java.lang.Long)"
fullName: "com.azure.resourcemanager.cosmos.models.ConsistencyPolicy.withMaxStalenessPrefix(Long maxStalenessPrefix)"
name: "withMaxStalenessPrefix(Long maxStalenessPrefix)"
nameWithType: "ConsistencyPolicy.withMaxStalenessPrefix(Long maxStalenessPrefix)"
summary: "Set the max<wbr>Staleness<wbr>Prefix property: When used with the Bounded Staleness consistency level, this value represents the number of stale requests tolerated."
parameters:
- description: "the maxStalenessPrefix value to set."
name: "maxStalenessPrefix"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html\">Long</a>"
syntax: "public ConsistencyPolicy withMaxStalenessPrefix(Long maxStalenessPrefix)"
desc: "Set the maxStalenessPrefix property: When used with the Bounded Staleness consistency level, this value represents the number of stale requests tolerated. Accepted range for this value is 1 \\\\u2013 2,147,483,647. Required when defaultConsistencyPolicy is set to 'BoundedStaleness'."
returns:
description: "the ConsistencyPolicy object itself."
type: "<xref href=\"com.azure.resourcemanager.cosmos.models.ConsistencyPolicy?alt=com.azure.resourcemanager.cosmos.models.ConsistencyPolicy&text=ConsistencyPolicy\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "The consistency policy for the Cosmos DB database account."
metadata: {}
package: "com.azure.resourcemanager.cosmos.models"
artifact: com.azure.resourcemanager:azure-resourcemanager-cosmos:2.18.0