Class CosmosRegionSwitchHint

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

public final class CosmosRegionSwitchHint extends Object
CosmosRegionSwitchHint encapsulates hints which guide SDK-internal retry policies on how early to switch retries to a different region.
  • 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.