@PreDestroy
    public void close() {
        ShutdownUtils.shutdownServer(server);
        ShutdownUtils.shutdownEventExecutor(eventExecutors);
        ExecutorUtils.shutdownAndAwaitTermination(workerExecutor, 3, TimeUnit.SECONDS);
    }
copy grpc framework
- https://github.com/grpc/grpc-java/blob/master/examples/src/main/java/io/grpc/examples/helloworld/HelloWorldServer.java

Server that manages startup/shutdown of a {@code Greeter} server.
agent-module/plugins-it/google-grpc-it/google-grpc-1-42-it/src/test/java/com/navercorp/pinpoint/it/plugin/grpc/HelloWorldSimpleServer.java