public boolean isDisconnected(String id) {
        NodeConnectionState state = nodeState.get(id);
        return state != null && state.state.isDisconnected();
    }
Return true if the connection has been disconnected
@param id The id of the node to check
clients/src/main/java/org/apache/kafka/clients/ClusterConnectionStates.java