![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
netty
文章平均质量分 70
jackson陈
这个作者很懒,什么都没留下…
展开
-
web服务和netty不能一起使用?
web服务和netty不能一起使用?当然是可以一起的,本篇文章介绍在落地这一需求时所遇到的两个问题以及原因和解决方法原创 2021-06-22 14:38:21 · 1275 阅读 · 0 评论 -
netty 中LengthFieldPrepender与LengthFieldBasedFrameDecoder
这两个类通常一起使用来解决半包与粘包的问题LengthFieldPrepender编码器作用:将当前发送消息的二进制字节长度,添加到缓冲区头部;这样消息就有了固定长度,长度存储在缓冲头中构造方法public LengthFieldPrepender(int lengthFieldLength, boolean lengthIncludesLengthFieldLength) {...原创 2019-06-05 10:44:26 · 2306 阅读 · 2 评论 -
netty 中 IdleStateHandler
IdleStateHandler 空闲状态处理器,是用来检测当前Handler的ChannelRead()的空闲时间。构造方法如下public IdleStateHandler( long readerIdleTime, long writerIdleTime, long allIdleTime, TimeUnit unit) { ...原创 2019-06-05 15:46:08 · 794 阅读 · 0 评论 -
TX-LCN分布式事务框架源码解析(服务端-2-TxLcnInitializer初始化之TMRpcServer)
上篇文章我们通过注解@EnableTransactionManagerServer了解了服务端的启动初始化流程。最重要的TxLcnInitializer#init我们在本篇文章详细说明先看下服务端实现了TxLcnInitializer接口的类有哪些一共有五个实现类分别是EnsureIdGenEngine类,用于处理和生成全局唯一idMysqlLoggerHelper类,用于记录...原创 2019-06-13 15:56:24 · 1543 阅读 · 1 评论