共用方式為


CosmosRegionSwitchHint Class

  • java.lang.Object
    • com.azure.cosmos.CosmosRegionSwitchHint

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 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.

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.

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