public ConnectionState connectionState(String id) {
        return nodeState(id).state;
    }
Get the state of a given connection.
@param id the id of the connection
@return the state of our connection
clients/src/main/java/org/apache/kafka/clients/ClusterConnectionStates.java