ServerBootstrap的group方法用来给成员变量赋值,如下图
AbstractBootstrap为ServerBootstrap的父类。
ServerBootstrap的channel方法用来设置channelFactory成员变量(在父类AbstractBootstrap里)
ServerBootstrap的childHandler方法用来给本类的成员变量赋值。
微信扫一扫
ServerBootstrap的group方法用来给成员变量赋值,如下图
AbstractBootstrap为ServerBootstrap的父类。
ServerBootstrap的channel方法用来设置channelFactory成员变量(在父类AbstractBootstrap里)
ServerBootstrap的childHandler方法用来给本类的成员变量赋值。
相关推荐