public synchronized void setStatsStatus(boolean enableStats) {
        if (enableStats) {
            this.isManualClosed = false;
        } else {
            this.isManualClosed = true;
            this.isClosed = true;
        }
    }
Set manually the statistic status.

@param enableStats  enable or disable the statistic.
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/broker/stats/MsgStoreStatsHolder.java