@Override
  public void close() {
    if (enabled.compareAndSet(true, false)) {
      if (indexScanner != null) {
        indexScanner.cancel();
      }
      if (queueProcessor != null) {
        queueProcessor.cancel();
      }
      if (validDataSizeCollector != null) {
        validDataSizeCollector.cancel();
      }
    }
  }
Disable this {@link BlobStoreStats} and cancel any ongoing and scheduled index scan.
@throws InterruptedException
ambry-store/src/main/java/com/github/ambry/store/BlobStoreStats.java