随笔分类 -  netty

netty答题
摘要:1,介绍一下netty netty封装了Java原生的nio,是一个异步和数据驱动的网络编程框架, 与tcp: 异步:read和write方法均是异步方法,用户进程发起一个IO操作然后,立即返回,等IO操作真正的完成以后,应用程序会得到IO操作完成的通知(回到函数,channelactive和cha 阅读全文

posted @ 2018-10-17 00:44 Kooing 阅读(235) 评论(0) 推荐(0)

netty线程模型
摘要:https://www.jianshu.com/p/128ddc36e713 阅读全文

posted @ 2018-10-16 15:57 Kooing 阅读(105) 评论(0) 推荐(0)

netty SimpleChannelInboundHandler<Message>和ChannelInboundHandlerApter
摘要:一个兄弟的测试体验:https://blog.csdn.net/linuu/article/details/51307060 比较官方:https://www.imooc.com/article/28232 顺序:https://blog.csdn.net/u013252773/article/de 阅读全文

posted @ 2018-10-16 11:01 Kooing 阅读(618) 评论(0) 推荐(0)

netty异步
摘要:通俗理解:http://lingnanlu.github.io/2016/08/16/netty-asyc-callback 异步的小demo:https://blog.csdn.net/coder_py/article/details/72961574 知乎讨论,耗时的业务代码:https://w 阅读全文

posted @ 2018-10-15 17:24 Kooing 阅读(160) 评论(0) 推荐(0)

简历的分布式
摘要:1,介绍一下项目,前端 我个人的技术栈是比较偏向后端,对前端不是太精通,当时的前端是根据之前他们写好的页面大概搬过来再去修改其他细节,或者是请教下当时的同事, 在讲到node,node在项目中是充当mvc的c层,也就是controller层,负责处理get请求和调用基于dubbox开放出来的rest 阅读全文

posted @ 2018-10-14 23:15 Kooing 阅读(230) 评论(0) 推荐(0)

jedis api
摘要:http://www.importnew.com/19321.html 阅读全文

posted @ 2018-09-16 14:29 Kooing 阅读(122) 评论(0) 推荐(0)

cpu核心数的线程数
摘要:http://swiftlet.net/archives/2236 阅读全文

posted @ 2018-09-15 15:24 Kooing 阅读(108) 评论(0) 推荐(0)

handler之责任链模式
摘要:https://www.cnblogs.com/java-my-life/archive/2012/05/28/2516865.html 阅读全文

posted @ 2018-09-15 14:40 Kooing 阅读(297) 评论(0) 推荐(0)

idea新用法
摘要:https://blog.csdn.net/linsongbin1/article/details/80211919 阅读全文

posted @ 2018-09-13 16:45 Kooing 阅读(113) 评论(0) 推荐(0)

map的put和putIfAbsent使用
摘要:源码中传入key和value,根据key获取看是否存在value,如果value==null,然后调用put方法把传入的key和value put进map,返回根据key获取的老value 意思就是:putIfAbsent 如果传入key对应的value已经存在,就返回存在的value,不进行替换。 阅读全文

posted @ 2018-09-13 13:43 Kooing 阅读(1431) 评论(0) 推荐(0)

netty的option和childOption
摘要:https://www.jianshu.com/p/0bff7c020af2 阅读全文

posted @ 2018-09-12 23:40 Kooing 阅读(1787) 评论(0) 推荐(0)

Java8 lam。。。表达式
摘要:双冒号:相当于用了别人实现的方法,格式,类名::方法 Math::max等效于(a, b)->Math.max(a, b)String::startWith等效于(s1, s2)->s1.startWith(s2)s::isEmpty等效于()->s.isEmpty() 阅读全文

posted @ 2018-09-12 15:16 Kooing 阅读(1728) 评论(0) 推荐(0)

protobuf学习
摘要:主要:https://blog.csdn.net/linuu/article/details/51360609 Java_pack:和生成的文件有关,不要乱打 java_classname:和生成的类名有关 message和enum是它的基本类型,很类似于java的class和枚举,用点操作符调用 阅读全文

posted @ 2018-09-10 23:29 Kooing 阅读(132) 评论(0) 推荐(0)

protobuf生成
摘要:1,文件路径匹配好在src/main/proto下面 https://blog.csdn.net/u010939285/article/details/78538927 阅读全文

posted @ 2018-09-10 18:46 Kooing 阅读(139) 评论(0) 推荐(0)

websocket小体验
摘要:http://www.cnblogs.com/GoodHelper/p/7078381.html https://segmentfault.com/a/1190000012084213 阅读全文

posted @ 2018-09-09 19:23 Kooing 阅读(91) 评论(0) 推荐(0)

websocket,socket,http长连接
摘要:https://blog.zengrong.net/post/2199.html 阅读全文

posted @ 2018-09-07 18:30 Kooing 阅读(164) 评论(0) 推荐(0)

导航