yongshun / learn_netty_source_code Goto Github PK
View Code? Open in Web Editor NEWNetty 源码分析教程
Netty 源码分析教程
受益匪浅,读了仁兄(姐)的文章,很有启发,于是自己尝试将其中的逻辑抽离出来,这样逻辑清晰一点,看起来也方便。
https://github.com/leexuehan/MyNetty
从segmentfault过来的,sf的登录系统有问题,登录不上。
想请教一个问题,我已经在stackoverflow上提问了,但还没有人回答:
http://stackoverflow.com/questions/40482830/is-there-a-possibility-that-pipeline-firechannelactive-is-executed-twice-when
望指教,谢谢。
HeadContext 其实实现的是 ChannelOutboundHandler,而TailContext实现的其实是ChannelInboundHandler
如题。
(文档很有帮助,谢谢!)
凭自己的理解尝试续写,如写得不好,请各位指正。
有没有类似gitbook的这样的博客来看, 直接这样看的话,有点麻烦
netty 源码分析之三,EventLoop,NioEventLoop 的实例化过程 里面, 有一段说"在 SingleThreadEventExecutor 构造器中, 通过 threadFactory.newThread 创建了一个新的 Java 线程. 在这个线程中所做的事情主要就是调用 SingleThreadEventExecutor.this.run() 方法, 而因为 NioEventLoop 实现了这个方法, 因此根据多态性, 其实调用的是 NioEventLoop.run() 方法." , 我查了下, 类名.thsi.func()这种调用方式不适用于多态,如果是多态,那就直接func()这样调用就行了,这种特殊写法就会只调用 特定父类里的方法。
图片不能加载
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.