public synchronized void join() throws InterruptedException {
        if (this.node != null) {
            this.node.join();
            this.node = null;
        }
    }
Block thread to wait the server shutdown.

@throws InterruptedException if the current thread is interrupted
        while waiting
jraft-core/src/main/java/com/alipay/sofa/jraft/RaftGroupService.java