java.lang.Object
io.github.resilience4j.ratpack.circuitbreaker.monitoring.endpoint.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

    Nested classes/interfaces inherited from interface ratpack.func.Action

    ratpack.func.Action.ConditionalSpec<I extends java.lang.Object>
  • 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
    void execute​(ratpack.handling.Chain chain)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface ratpack.func.Action

    append, curry, prepend, toConsumer, uncheckedWith, with
  • 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:
      execute in interface ratpack.func.Action<ratpack.handling.Chain>
      Throws:
      java.lang.Exception