public static Function<? super RpcClient, CircuitBreakerRpcClient>
    newPerMethodDecorator(Function<String, ? extends CircuitBreaker> factory,
                          CircuitBreakerRuleWithContent<RpcResponse> ruleWithContent) {
        return newDecorator(CircuitBreakerMapping.perMethod(factory), ruleWithContent);
    }
Creates a new decorator that binds one {@link CircuitBreaker} per RPC method name with the specified
{@link CircuitBreakerRuleWithContent}.

<p>Since {@link CircuitBreaker} is a unit of failure detection, don't reuse the same instance for
unrelated services.

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