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 Summary
Modifier and Type Method Description CircuitBreaker
apply(String host, String method, String path)
Given a combination of host, method and path, creates aCircuitBreaker
.
-
Method Details
-
apply
Given a combination of host, method and path, creates aCircuitBreaker
.- 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.
-