CosmosRegionSwitchHint Class
- java.
lang. Object - com.
azure. cosmos. CosmosRegionSwitchHint
- com.
public final class CosmosRegionSwitchHint
CosmosRegionSwitchHint encapsulates hints which guide SDK-internal retry policies on how early to switch retries to a different region.
Field Summary
Modifier and Type | Field and Description |
---|---|
static final
Cosmos |
LOCAL_REGION_PREFERRED
LOCAL_REGION_PREFERRED corresponds to a hint which will result in internal retry policies biasing the local region of a request more than remote regions. |
static final
Cosmos |
REMOTE_REGION_PREFERRED
REMOTE_REGION_PREFERRED corresponds to a hint which will result in internal retry policies biasing remote regions more than the local region. |
Methods inherited from java.lang.Object
Field Details
LOCAL_REGION_PREFERRED
public static final CosmosRegionSwitchHint LOCAL_REGION_PREFERRED
LOCAL_REGION_PREFERRED corresponds to a hint which will result in internal retry policies biasing the local region of a request more than remote regions.
REMOTE_REGION_PREFERRED
public static final CosmosRegionSwitchHint REMOTE_REGION_PREFERRED
REMOTE_REGION_PREFERRED corresponds to a hint which will result in internal retry policies biasing remote regions more than the local region.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應