azure-docs-sdk-java/docs-ref-autogen/com.azure.cosmos.Consistenc...

98 строки
7.1 KiB
YAML

### YamlMime:JavaEnum
uid: "com.azure.cosmos.ConsistencyLevel"
fullName: "com.azure.cosmos.ConsistencyLevel"
name: "ConsistencyLevel"
nameWithType: "ConsistencyLevel"
summary: "Represents the consistency levels supported for Azure Cosmos DB client operations in the Azure Cosmos DB service."
inheritances:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Enum?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html\">Enum</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#valueOf-java.lang.Class-java.lang.String-\">valueOf</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#clone--\">clone</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#compareTo-E-\">compareTo</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#describeConstable--\">describeConstable</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#equals-java.lang.Object-\">equals</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#finalize--\">finalize</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#getDeclaringClass--\">getDeclaringClass</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#hashCode--\">hashCode</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#name--\">name</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#ordinal--\">ordinal</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#toString--\">toString</a>"
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
syntax: "public enum **ConsistencyLevel**</br> extends <a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html\">Enum</a>&lt;<xref href=\"com.azure.cosmos.ConsistencyLevel?alt=com.azure.cosmos.ConsistencyLevel&text=ConsistencyLevel\" data-throw-if-not-resolved=\"False\" />&gt;"
fields:
- uid: "com.azure.cosmos.ConsistencyLevel.BOUNDED_STALENESS"
fullName: "com.azure.cosmos.ConsistencyLevel.BOUNDED_STALENESS"
name: "BOUNDED_STALENESS"
nameWithType: "ConsistencyLevel.BOUNDED_STALENESS"
summary: "Bounded Staleness guarantees that reads are not too out-of-date."
desc: "Bounded Staleness guarantees that reads are not too out-of-date. This can be configured based on number of operations (MaxStalenessPrefix) or time (MaxStalenessIntervalInSeconds)"
- uid: "com.azure.cosmos.ConsistencyLevel.CONSISTENT_PREFIX"
fullName: "com.azure.cosmos.ConsistencyLevel.CONSISTENT_PREFIX"
name: "CONSISTENT_PREFIX"
nameWithType: "ConsistencyLevel.CONSISTENT_PREFIX"
summary: "CONSISTENT\\_PREFIX Consistency guarantees that reads will return some prefix of all writes with no gaps."
desc: "CONSISTENT\\_PREFIX Consistency guarantees that reads will return some prefix of all writes with no gaps. ALL writes will be eventually be available for reads."
- uid: "com.azure.cosmos.ConsistencyLevel.EVENTUAL"
fullName: "com.azure.cosmos.ConsistencyLevel.EVENTUAL"
name: "EVENTUAL"
nameWithType: "ConsistencyLevel.EVENTUAL"
summary: "EVENTUAL Consistency guarantees that reads will return a subset of writes."
desc: "EVENTUAL Consistency guarantees that reads will return a subset of writes. ALL writes will be eventually be available for reads."
- uid: "com.azure.cosmos.ConsistencyLevel.SESSION"
fullName: "com.azure.cosmos.ConsistencyLevel.SESSION"
name: "SESSION"
nameWithType: "ConsistencyLevel.SESSION"
summary: "SESSION Consistency guarantees monotonic reads (you never read old data, then new, then old again), monotonic writes (writes are ordered) and read your writes (your writes are immediately visible to your reads) within any single session."
desc: "SESSION Consistency guarantees monotonic reads (you never read old data, then new, then old again), monotonic writes (writes are ordered) and read your writes (your writes are immediately visible to your reads) within any single session."
- uid: "com.azure.cosmos.ConsistencyLevel.STRONG"
fullName: "com.azure.cosmos.ConsistencyLevel.STRONG"
name: "STRONG"
nameWithType: "ConsistencyLevel.STRONG"
summary: "STRONG Consistency guarantees that read operations always return the value that was last written."
desc: "STRONG Consistency guarantees that read operations always return the value that was last written."
methods:
- uid: "com.azure.cosmos.ConsistencyLevel.toString()"
fullName: "com.azure.cosmos.ConsistencyLevel.toString()"
name: "toString()"
nameWithType: "ConsistencyLevel.toString()"
overridden: "java.lang.Enum.toString()"
syntax: "public String toString()"
returns:
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.cosmos.ConsistencyLevel.valueOf(java.lang.String)"
fullName: "com.azure.cosmos.ConsistencyLevel.valueOf(String name)"
name: "valueOf(String name)"
nameWithType: "ConsistencyLevel.valueOf(String name)"
modifiers:
- "static"
parameters:
- name: "name"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public static ConsistencyLevel valueOf(String name)"
returns:
type: "<xref href=\"com.azure.cosmos.ConsistencyLevel?alt=com.azure.cosmos.ConsistencyLevel&text=ConsistencyLevel\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.cosmos.ConsistencyLevel.values()"
fullName: "com.azure.cosmos.ConsistencyLevel.values()"
name: "values()"
nameWithType: "ConsistencyLevel.values()"
modifiers:
- "static"
syntax: "public static ConsistencyLevel[] values()"
returns:
type: "<xref href=\"com.azure.cosmos.ConsistencyLevel?alt=com.azure.cosmos.ConsistencyLevel&text=ConsistencyLevel\" data-throw-if-not-resolved=\"False\" />[]"
desc: "Represents the consistency levels supported for Azure Cosmos DB client operations in the Azure Cosmos DB service.\n\nThe requested ConsistencyLevel must match or be weaker than that provisioned for the database account. Consistency levels by order of strength are STRONG, BOUNDED\\_STALENESS, SESSION and EVENTUAL. Refer to consistency level documentation for additional details: https://docs.microsoft.com/en-us/azure/cosmos-db/consistency-levels"
metadata: {}
package: "com.azure.cosmos"
artifact: com.azure:azure-cosmos:4.63.3