static CircuitBreakerMapping perMethod(Function<String, ? extends CircuitBreaker> factory) {
        requireNonNull(factory, "factory");
        return builder().perMethod().build((host, method, path) -> factory.apply(method));
    }
Creates a new {@link CircuitBreakerMapping} which maps {@link CircuitBreaker}s with method name.

@param factory the function that takes a method name and creates a new {@link CircuitBreaker}
core/src/main/java/com/linecorp/armeria/client/circuitbreaker/CircuitBreakerMapping.java