public void acquireTransitDataSizeWithRateLimiter(long transitDataSize) {
    while (transitDataSize > 0) {
      if (transitDataSize > Integer.MAX_VALUE) {
        rateLimiter.acquire(Integer.MAX_VALUE);
        transitDataSize -= Integer.MAX_VALUE;
      } else {
        rateLimiter.acquire((int) transitDataSize);
        return;
      }
    }
  }
Acquire the size of the data to be sent.

@param transitDataSize the size of the data to be sent
iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/iot/snapshot/IoTConsensusRateLimiter.java