Vertx:源码阅读笔记

来自WHY42
  • TCPServerBase.java中初始化Netty的ServerBootStrap,
bootstrap.group(vertx.getAcceptorEventLoopGroup(), channelBalancer.workers());

其中,acceptorEventLoopGroup在VertxImpl构造函数中初始化

  • VertxImpl.java
acceptorEventLoopGroup = transport.eventLoopGroup(
    Transport.ACCEPTOR_EVENT_LOOP_GROUP, 1, acceptorEventLoopThreadFactory, 100);