java.lang.Object
cn.wjybxx.concurrent.EventLoopGroupBuilder
- 作者:
- wjybxx date 2023/4/11
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明build()intstatic EventLoopGroupBuilder创建一个默认的builder - 最终将构建FixedEventLoopGroupsetChooserFactory(EventLoopChooserFactory chooserFactory) setEventLoopFactory(EventLoopFactory eventLoopFactory) setNumChildren(int numChildren) setTerminationHook(Runnable terminationHook)
-
构造器详细资料
-
EventLoopGroupBuilder
public EventLoopGroupBuilder()
-
-
方法详细资料
-
newBuilder
创建一个默认的builder - 最终将构建FixedEventLoopGroup -
build
-
getNumChildren
public int getNumChildren() -
setNumChildren
-
getEventLoopFactory
-
setEventLoopFactory
-
getChooserFactory
-
setChooserFactory
-
getTerminationHook
-
setTerminationHook
- 参数:
terminationHook- 线程组终止时的钩子,注意线程安全性问题
-