public boolean isResponseExpected(Node node, long correlationId) {
        ConnectionState state = connections.get(node.idString());
        if (state == null) {
            return false;
        }

        return state.isResponseExpected(correlationId);
    }
Computes the amount of time needed to wait before a bootstrap server is ready for a Fetch
request.

If there is a connection with a pending request it returns the amount of time to wait until
the request times out.

Returns zero, if there are no pending requests and at least one of the bootstrap servers is
ready.

If all of the bootstrap servers are backing off and there are no pending requests, return
the minimum amount of time until a bootstrap server becomes ready.

@param currentTimeMs the current time
@return the amount of time to wait until bootstrap server can accept a Fetch request
raft/src/main/java/org/apache/kafka/raft/RequestManager.java