public void getTopicDetailInfo(StringBuilder strBuff, boolean resetValue) {
            int totalCnt = 0;
            strBuff.append("\"topic_details\":{");
            for (Map.Entry<String, TrafficStatsUnit> entry : topicTrafficMap.entrySet()) {
                if (entry == null) {
                    continue;
                }
                if (totalCnt++ > 0) {
                    strBuff.append(",");
                }
                entry.getValue().getValue(strBuff, true);
            }
            strBuff.append("}");
            if (resetValue) {
                topicTrafficMap.clear();
            }
        }
Get traffic statistics details by topic

@param strBuff      string buffer
@param resetValue   whether to reset the current data
inlong-tubemq/tubemq-client/src/main/java/org/apache/inlong/tubemq/client/common/ClientStatsInfo.java