ConsistencyLevel Enum
- java.
lang. Object - java.
lang. Enum - com.
azure. cosmos. ConsistencyLevel
- com.
- java.
public enum ConsistencyLevel
extends Enum<ConsistencyLevel>
Represents the consistency levels supported for Azure Cosmos DB client operations in the Azure Cosmos DB service.
The 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
Fields
BOUNDED_STALENESS |
Bounded Staleness guarantees that reads are not too out-of-date. |
CONSISTENT_PREFIX |
CONSISTENT_PREFIX Consistency guarantees that reads will return some prefix of all writes with no gaps. |
EVENTUAL |
EVENTUAL Consistency guarantees that reads will return a subset of writes. |
SESSION |
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. |
STRONG |
STRONG Consistency guarantees that read operations always return the value that was last written. |
Methods inherited from java.lang.Enum
Methods inherited from java.lang.Object
Methods
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應