@Override
    long getSlice(String jobType, String jobId, long usedSinceLastCall) {
      if (jobType.equals(BlobStoreCompactor.INDEX_SEGMENT_READ_JOB_NAME)) {
        indexSegmentsCopied += usedSinceLastCall;
      } else if (jobType.equals(BlobStoreCompactor.COMPACTION_CLEANUP_JOB_NAME)) {
        numBytesCopied += usedSinceLastCall;
      }
      if (indexSegmentsCopied == indexSegmentCountToCutoffAt || numBytesCopied >= numBytesToCutoffAt) {
        closeCompactorOrThrowException();
      }
      return Long.MAX_VALUE;
    }
Creates an instance of InterruptionInducingDiskIOScheduler.
@param indexSegmentCountToCutoffAt interrupts once these many index segments have been reported copied.
@param numBytesToCutoffAt interrupts once these many bytes have been reported copied.
ambry-store/src/test/java/com/github/ambry/store/BlobStoreCompactorTest.java