Class CircuitBreakerChain
- All Implemented Interfaces:
ratpack.func.Action<ratpack.handling.Chain>
public class CircuitBreakerChain
extends java.lang.Object
implements ratpack.func.Action<ratpack.handling.Chain>
In General, Provides event and stream event endpoints for circuitbreaker events.
The following endpoints are automatically generated and Circuit breake states can be obtained as curl -v http://localhost:5050/circuitbreaker/states curl -v http://localhost:5050/circuitbreaker/states/{circuitbreakername}
The following endpoints are automatically generated and events are produced as Server Sent Event(SSE) curl -vv http://localhost:5050/circuitbreaker/stream/events curl -vv http://localhost:5050/circuitbreaker/stream/events/{circuitbreakername} curl -vv http://localhost:5050/circuitbreaker/stream/events/{circuitbreakername}/{errorType} curl -vv http://localhost:5050/circuitbreaker/hystrixStream/events curl -vv http://localhost:8090/circuitbreaker/hystrixStream/events/{circuitbreakername} curl -vv http://localhost:8090/circuitbreaker/hystrixStream/events/{circuitbreakername}/{errorType}
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description CircuitBreakerChain(io.github.resilience4j.consumer.EventConsumerRegistry<io.github.resilience4j.circuitbreaker.event.CircuitBreakerEvent> eventConsumerRegistry, io.github.resilience4j.circuitbreaker.CircuitBreakerRegistry circuitBreakerRegistry) -
Method Summary
Modifier and Type Method Description voidexecute(ratpack.handling.Chain chain)
-
Constructor Details
-
CircuitBreakerChain
@Inject public CircuitBreakerChain(io.github.resilience4j.consumer.EventConsumerRegistry<io.github.resilience4j.circuitbreaker.event.CircuitBreakerEvent> eventConsumerRegistry, io.github.resilience4j.circuitbreaker.CircuitBreakerRegistry circuitBreakerRegistry)
-
-
Method Details
-
execute
public void execute(ratpack.handling.Chain chain) throws java.lang.Exception- Specified by:
executein interfaceratpack.func.Action<ratpack.handling.Chain>- Throws:
java.lang.Exception
-