public void shutdown(final int shutdownTimeout) throws InterruptedException {
        this.isRunning = false;

        this.executorService.shutdownNow();
        // Wait for collectStatistics runnable to finish so that disposal of
        // statistics does not cause any exceptions to be thrown.
        this.executorService.awaitTermination(shutdownTimeout, TimeUnit.MILLISECONDS);
    }
Shuts down statistics collector.

@param shutdownTimeout Time in milli-seconds to wait for shutdown before
                       killing the collection process.
@throws InterruptedException thrown if Threads are interrupted.
jraft-rheakv/rheakv-core/src/main/java/com/alipay/sofa/jraft/rhea/rocks/support/RocksStatisticsCollector.java