private boolean canSendRequest(String node, long now) {
        return connectionStates.isReady(node, now) && selector.isChannelReady(node) &&
            inFlightRequests.canSendMore(node);
    }
Are we connected and ready and able to send more requests to the given connection?

@param node The node
@param now the current timestamp
clients/src/main/java/org/apache/kafka/clients/NetworkClient.java