txlcn-tc/src/main/java/com/codingapi/txlcn/tc/txmsg/AutoTMClusterEngine.java
private boolean prepareToResearchTMCluster() {
        int count = tryConnectCount.incrementAndGet();
        int size = txClientConfig.getManagerAddress().size();
        if (count == size) {
            TMSearcher.search();
            return false;
        } else if (count > size) {
            return !TMSearcher.searchedOne();
        }
        return true;
    }
private boolean prepareToResearchTMCluster() {
        int count = tryConnectCount.incrementAndGet();
        int size = txClientConfig.getManagerAddress().size();
        if (count == size) {
            TMSearcher.search();
            return false;
        } else if (count > size) {
            return !TMSearcher.searchedOne();
        }
        return true;
    }
准备搜索TM

@return true 搜索结束