channel构建的时候会构建一个pipeline,pipeline含有channel的引用。handler添加的时候会构建一个context,包含着pipeline,所以context-->pipeline-->channel。
channel在注册的时候会绑定一个eventLoop。eventLoop绑定一个selector和一个线程。
channel就是一个通道,底层就是socket。
EventLoopGroup就是eventLoop的集合。
channel构建的时候会构建一个pipeline,pipeline含有channel的引用。handler添加的时候会构建一个context,包含着pipeline,所以context-->pipeline-->channel。
channel在注册的时候会绑定一个eventLoop。eventLoop绑定一个selector和一个线程。
channel就是一个通道,底层就是socket。
EventLoopGroup就是eventLoop的集合。