public void onResponseResult(Node node, long correlationId, boolean success, long timeMs) {
        if (isResponseExpected(node, correlationId)) {
            if (success) {
                // Mark the connection as ready by resetting it
                reset(node);
            } else {
                // Backoff the connection
                connections.get(node.idString()).onResponseError(correlationId, timeMs);
            }
        }
    }
Updates the manager when a response is received.

@param node the source of the response
@param correlationId the correlation id of the response
@param success true if the request was successful, false otherwise
@param timeMs the current time
raft/src/main/java/org/apache/kafka/raft/RequestManager.java