Enum Class ResilienceIsolationMode

java.lang.Object
java.lang.Enum<ResilienceIsolationMode>
com.sap.cloud.sdk.cloudplatform.resilience.ResilienceIsolationMode
All Implemented Interfaces:
Serializable, Comparable<ResilienceIsolationMode>, Constable

public enum ResilienceIsolationMode extends Enum<ResilienceIsolationMode>
Determines how to further isolate resilience constructs such as timeouts, circuit breakers, and bulkheads. This is in addition to the built-in grouping by resource.
  • Enum Constant Details

    • NO_ISOLATION

      public static final ResilienceIsolationMode NO_ISOLATION
      Global key that does not differentiate between tenants or users.
    • TENANT_REQUIRED

      public static final ResilienceIsolationMode TENANT_REQUIRED
      Tenant-only key that differentiates between tenants but not users. If the current tenant cannot be determined, a ResilienceRuntimeException will be thrown during runtime.
    • TENANT_OPTIONAL

      public static final ResilienceIsolationMode TENANT_OPTIONAL
      Tenant-only key that differentiates between tenants but not users. Existence of tenant is optional, so if the current tenant cannot be determined it will behave the same as NO_ISOLATION.
    • PRINCIPAL_REQUIRED

      public static final ResilienceIsolationMode PRINCIPAL_REQUIRED
      User-only key that differentiates between users but not tenants. If the current user cannot be determined, a ResilienceRuntimeException will be thrown during runtime.
    • PRINCIPAL_OPTIONAL

      public static final ResilienceIsolationMode PRINCIPAL_OPTIONAL
      User-only key that differentiates between users but not tenants. Existence of user is optional, so if the current user cannot be determined it will behave the same as NO_ISOLATION.
    • TENANT_AND_USER_REQUIRED

      public static final ResilienceIsolationMode TENANT_AND_USER_REQUIRED
      Tenant and user key that differentiates between both tenants and users. If the current user or tenant cannot be determined, a ResilienceRuntimeException will be thrown during runtime.
    • TENANT_AND_USER_OPTIONAL

      public static final ResilienceIsolationMode TENANT_AND_USER_OPTIONAL
      Tenant and user key that tries to differentiate between both tenants and users. Existence of user and tenant are optional, so if any of these cannot be determined it will behave like one of the less isolated modes.
  • Method Details

    • values

      public static ResilienceIsolationMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ResilienceIsolationMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null