Enum Class ResilienceIsolationMode
java.lang.Object
java.lang.Enum<ResilienceIsolationMode>
com.sap.cloud.sdk.cloudplatform.resilience.ResilienceIsolationMode
- All Implemented Interfaces:
Serializable
,Comparable<ResilienceIsolationMode>
,Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionGlobal key that does not differentiate between tenants or users.User-only key that differentiates between users but not tenants.User-only key that differentiates between users but not tenants.Tenant and user key that tries to differentiate between both tenants and users.Tenant and user key that differentiates between both tenants and users.Tenant-only key that differentiates between tenants but not users.Tenant-only key that differentiates between tenants but not users. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResilienceIsolationMode
Returns the enum constant of this class with the specified name.static ResilienceIsolationMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NO_ISOLATION
Global key that does not differentiate between tenants or users. -
TENANT_REQUIRED
Tenant-only key that differentiates between tenants but not users. If the current tenant cannot be determined, aResilienceRuntimeException
will be thrown during runtime. -
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 asNO_ISOLATION
. -
PRINCIPAL_REQUIRED
User-only key that differentiates between users but not tenants. If the current user cannot be determined, aResilienceRuntimeException
will be thrown during runtime. -
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 asNO_ISOLATION
. -
TENANT_AND_USER_REQUIRED
Tenant and user key that differentiates between both tenants and users. If the current user or tenant cannot be determined, aResilienceRuntimeException
will be thrown during runtime. -
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
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
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 nameNullPointerException
- if the argument is null
-