private void adjustHeartBeatPeriod(String reason, StringBuilder sBuilder) {
            lastHeartbeatTime = System.currentTimeMillis();
            heartbeatRetryTimes++;
            if ((nodeStatus.get() != 1)
                    && heartbeatRetryTimes > tubeClientConfig.getMaxHeartBeatRetryTimes()) {
                logger.warn(sBuilder.append("Adjust HeartbeatPeriod for ").append(reason)
                        .append(", sleep ").append(tubeClientConfig.getHeartbeatPeriodAfterFail())
                        .append(" Ms").toString());
                sBuilder.delete(0, sBuilder.length());
                try {
                    Thread.sleep(tubeClientConfig.getHeartbeatPeriodAfterFail());
                } catch (InterruptedException ignored) {
                    // ignore
                }
            }
        }
Get partitions of the given topic.

@param topic topic name
@return partition map
inlong-tubemq/tubemq-client/src/main/java/org/apache/inlong/tubemq/client/producer/ProducerManager.java