09 2020 档案
摘要:StringBuffer buffer1 = new Tt() { StringBuffer buffer = new StringBuffer().append(ins); }.buffer; Itest itest = new Tt() { Itest i = new Itest() { @Ov
阅读全文
摘要:netty 中至关重要的NioEventLoop NioEventLoop extends SingleThreadEventLoop 从继承结构上面可以明显的看到是一个单线程的实现。但它实际是implements java.util.concurrent.Executor 下文写关于它的execu
阅读全文
摘要:本文说明下ServerBootstrapAcceptor ServerBootstrapAcceptor extends ChannelInboundHandlerAdapter 它作为ServerBootStrap 的内部类。 它本身就是个Channelhandler,因为是继承ChannelIn
阅读全文
摘要:NioEventLoopGroup group1= new NioEventLoopGroup(); NioEventLoopGroup group2 = new NioEventLoopGroup(); try{ ServerBootstrap boot = new ServerBootstrap
阅读全文
摘要:记录下这种使用。 SingleThreadEventExecutor doStartThread( .... SingleThreadEventExecutor.this.run(); .... ) SIngleThreadEventExecutor.this 引用指向的是NIoEventLoop。
阅读全文

浙公网安备 33010602011771号