Package io.github.resilience4j.micronaut
Enum Class ResilienceInterceptPhase
- All Implemented Interfaces:
Serializable,Comparable<ResilienceInterceptPhase>,Constable
Interceptor classes implement the Ordered interface
in order to control the order of execution when multiple interceptors are present.
This class provides a set of phases used for resilience4j
The default order of phases are: Retry ( CircuitBreaker ( RateLimiter ( TimeLimiter ( Bulkhead ( Function ) ) ) ) )
The order places this at RetryInterceptor and before RecoveryInterceptor
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRetry phase of execution.Retry phase of execution.Retry phase of execution.Retry phase of execution.Retry phase of execution. -
Method Summary
Modifier and TypeMethodDescriptionintstatic ResilienceInterceptPhaseReturns the enum constant of this class with the specified name.static ResilienceInterceptPhase[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RETRY
Retry phase of execution. -
CIRCUIT_BREAKER
Retry phase of execution. -
RATE_LIMITER
Retry phase of execution. -
TIME_LIMITER
Retry phase of execution. -
BULKHEAD
Retry phase of execution.
-
-
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
-
getPosition
public int getPosition()- Returns:
- The position
-