概要
现阶段绝Java和Spring几乎成了豆浆和油条般的组合
我们知道Spring提供了容器事件,可以通过ApplicationContext.publish进行事件发布, 为了和此技术进行集成, nettyx提供了ChannelEvent系列对象
话不多说,先引入nettyx依赖
请从maven中央仓获取{lastest.version},最新版本号
<dependency>
<groupId>io.github.fbbzl</groupId>
<artifactId>nettyx</artifactId>
<version>{lastest.version}</version>
</dependency>
ChannelEvent
ChannelEvent包含了 入站(Inbound) 和 出站(Outbound) 的事件扩展
技术名词解释
入站事件
ChannelRegister
ChannelUnRegister
ChannelActive
ChannelInactive
ChannelRead
ChannelReadComplete
UserEventTriggered
WritabilityChanged
ExceptionCaught
ReadIdle
WriteIdle
出站事件
Bind
Connect
Disconnect
Close
Deregister
ReadInWrite
Write
Flush
Netty IO事件扩展
本文介绍Nettyx框架提供的Channel事件扩展,包括入站和出站事件,如ChannelActive、ChannelRead等,并说明了如何通过引入Nettyx依赖来使用这些事件。
1783

被折叠的 条评论
为什么被折叠?



