@Override
    public void destroy() throws Exception {

        if (isClose.compareAndSet(false, true)) {
            logger.info("HBaseTemplate.destroy()");
            final ExecutorService executor = this.executor;
            if (executor != null) {
                MoreExecutors.shutdownAndAwaitTermination(executor, Duration.ofSeconds(3));
            }
        }
    }
@author emeroad
@author HyunGil Jeong
@author minwoo.jung
@author Taejin Koo
commons-hbase/src/main/java/com/navercorp/pinpoint/common/hbase/HbaseTemplate.java