@Override
      public boolean isEndOfInput() {
        boolean isEndOfInput = streamed >= totalSize;
        if (isEndOfInput && metricRecorded.compareAndSet(false, true)) {
          long postChunksTime = System.currentTimeMillis() - startTime;
          perfClientMetrics.postChunksTimeInMs.update(postChunksTime);
          logger.debug("Took {} ms to POST the blob of size {}", postChunksTime, streamed);
        }
        return isEndOfInput;
      }
Creates an instance that repeatedly sends the same chunk up to the configured size.
ambry-tools/src/main/java/com/github/ambry/tools/perf/rest/NettyPerfClient.java