Channel Builder 用于帮助创建 Channel 对象。
标准的实现方式是:
NettyChannelBuilder builder = NettyChannelBuilder.forAddress("127.0.0.1", 1080);
builder.someMethod()......
ManagedChannel channel = builder.build();
Channel Builder 的继承结构如下:
Channel Builder 有三个实现,对应于 netty/okjava/inprocess 三种主要的 Channel 。