Java NIO基本组件Selector详解
Selector流程原理
Selector要点
Selector 常用方法
采用Channel和ByteBuffer,Selector,手写tomcat
//采用NIO,Channel和ByteBuffer,Selector
public class tomcatSelector {
public static final String SEPARATOR = "/r/n";
//源码注释:requested maximum length of the queue of incoming connections.
//BACK_LOG影响的accept队列大小
public static final int BACK_LOG = 1024;
public static void main(String[] args) throws Exceptio
共有 0 条评论