Enum Class ResilienceInterceptPhase

java.lang.Object
java.lang.Enum<ResilienceInterceptPhase>
io.github.resilience4j.micronaut.ResilienceInterceptPhase
All Implemented Interfaces:
Serializable, Comparable<ResilienceInterceptPhase>, Constable

public enum ResilienceInterceptPhase extends Enum<ResilienceInterceptPhase>

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

  • Enum Constant Details

  • Method Details

    • values

      public static ResilienceInterceptPhase[] 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 ResilienceInterceptPhase 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
    • getPosition

      public int getPosition()
      Returns:
      The position