You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having the configuration in yaml file like this
resilience4j:
circuitbreaker:
instances:
testService:
slidingWindowSize: 100
permittedNumberOfCallsInHalfOpenState: 10
slidingWindowType: TIME_BASED
minimumNumberOfCalls: 20
waitDurationInOpenState: 50s
failureRateThreshold: 50
slowCallRateThreshold: 50
slowCallDurationThreshold: 50s
and pom file with resilience4j-spring-boot2, resilience4j-circuitbreaker, spring-boot-starter-aop, spring-boot-starter-actuator, spring-boot-starter-web dependencies.
I'm putting the annotation on the service's method process() @CIRCUITBREAKER(name = "testService", fallbackMethod = "onFailure")
and I define method onFailure with parameters like method process() plus parameter Throwable.
Inside process() method I use Thread.sleep() to delay the response in 70s but the fallback method is not invoked. Could somebody please check for me?
The text was updated successfully, but these errors were encountered:
Resilience4j version: 1.7.1
Java version: 17
Spring boot version: 2.3.12.RELEASE
I'm having the configuration in yaml file like this
resilience4j:
circuitbreaker:
instances:
testService:
slidingWindowSize: 100
permittedNumberOfCallsInHalfOpenState: 10
slidingWindowType: TIME_BASED
minimumNumberOfCalls: 20
waitDurationInOpenState: 50s
failureRateThreshold: 50
slowCallRateThreshold: 50
slowCallDurationThreshold: 50s
and pom file with resilience4j-spring-boot2, resilience4j-circuitbreaker, spring-boot-starter-aop, spring-boot-starter-actuator, spring-boot-starter-web dependencies.
I'm putting the annotation on the service's method process()
@CIRCUITBREAKER(name = "testService", fallbackMethod = "onFailure")
and I define method onFailure with parameters like method process() plus parameter Throwable.
Inside process() method I use Thread.sleep() to delay the response in 70s but the fallback method is not invoked. Could somebody please check for me?
The text was updated successfully, but these errors were encountered: