@Override
    public void shutdown() {
        // shutdown and release network resources
        if (this.shutdown.compareAndSet(false, true)) {
            try {
                if (!clients.isEmpty()) {
                    for (String key : clients.keySet()) {
                        if (key != null) {
                            Client client = clients.remove(key);
                            if (client != null) {
                                client.close();
                            }
                        }
                    }
                }
                if (this.eventLoopGroup != null && !eventLoopGroup.isShutdown()) {
                    this.eventLoopGroup.shutdownGracefully();
                }
            } catch (Exception e) {
                logger.error("has exception ", e);
            }
        }
    }
initial the network by rpc config object

@param conf      the configure information
@throws IllegalArgumentException  the exception while configuring object
inlong-tubemq/tubemq-core/src/main/java/org/apache/inlong/tubemq/corerpc/netty/NettyClientFactory.java