@Override
    public boolean ready(Node node, long now) {
        if (node.isEmpty())
            throw new IllegalArgumentException("Cannot connect to empty node " + node);

        if (isReady(node, now))
            return true;

        if (connectionStates.canConnect(node.idString(), now))
            // if we are interested in sending to a node and we don't have a connection to it, initiate one
            initiateConnect(node, now);

        return false;
    }
Begin connecting to the given node, return true if we are already connected and ready to send to that node.

@param node The node to check
@param now The current timestamp
@return True if we are ready to send to the given node
clients/src/main/java/org/apache/kafka/clients/NetworkClient.java