09 2020 档案

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