Interface Resilience4jCircuitBreakerFactory

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@UnstableApi @FunctionalInterface public interface Resilience4jCircuitBreakerFactory
A functional interface that represents a mapper factory, mapping a combination of host, method and path to a CircuitBreaker using a CircuitBreakerRegistry.
  • Method Details

    • of

      Returns the default Resilience4jCircuitBreakerFactory. The host, method, and path will be concatenated with a '#' and will be used as the name parameter of CircuitBreakerRegistry.circuitBreaker(String).
    • apply

      io.github.resilience4j.circuitbreaker.CircuitBreaker apply(io.github.resilience4j.circuitbreaker.CircuitBreakerRegistry registry, @Nullable @Nullable String host, @Nullable @Nullable String method, @Nullable @Nullable String path)
      Given a combination of registry, host, method and path, creates a CircuitBreaker.
      Parameters:
      registry - the registry used by the CircuitBreakerClientHandler.
      host - the host of the context endpoint.
      method - the method of the context request.
      path - the path of the context request.
      Returns:
      the CircuitBreaker instance corresponding to this combination.