public static boolean shutdownExecutorService(String name, ExecutorService executorService, long timeout, TimeUnit unit) {
        if (executorService == null) {
            return false;
        }
        logger.debug("shutdown {}", name);
        executorService.shutdown();
        try {
            final boolean success = executorService.awaitTermination(timeout, unit);
            if (!success) {
                logger.warn("shutdown timeout {}", name);
            }
            return success;
        } catch (InterruptedException e) {
            Thread.currentThread().interrupt();
            return false;
        }
    }
@deprecated Use {@link com.google.common.util.concurrent.MoreExecutors#shutdownAndAwaitTermination(ExecutorService, Duration)} instead.
@author Woonduk Kang(emeroad)
grpc/src/main/java/com/navercorp/pinpoint/grpc/ExecutorUtils.java