Interface CircuitBreakerFactory

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

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

    • apply

      CircuitBreaker apply​(@Nullable String host, @Nullable String method, @Nullable String path)
      Given a combination of host, method and path, creates a CircuitBreaker.
      Parameters:
      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.