95-30-018-Channel-AbstractNioByteChannel

本文详细介绍了Netty中的AbstractNioByteChannel,包括其底层数据为Byte字节的特点,类图继承关系,构造方法,以及read事件框架。read事件与不同,它在读取一定字节后立即触发事件,以实现快速响应。此外,文章还讨论了write事件的处理,特别是doWrite方法,以及如何处理写入文件和ByteBuf的情况,确保高吞吐量和公平性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

2025-03-05 16:51:51.247 ERROR TID: N/A http-nio-15003-exec-3 c.g.e.c.a.GlobalExceptionHandler: Error while handle RuntimeException. org.redisson.client.RedisException: ERR PUBLISH is disabled, enable it with --pubsub option… channel: [id: 0x52a557ea, L:/127.0.0.1:62509 - R:/127.0.0.1:6379] command: (EVAL), params: [if (redis.call(‘exists’, KEYS[1]) == 0) then redis.call(‘hincrby’, KEYS[1], ARGV[2], 1); redis.call(…, 1, base::updateNe_1, 15000, 93fd2824-994d-4259-bde2-8f77113984a9:230] at org.redisson.client.handler.CommandDecoder.decode(CommandDecoder.java:345) at org.redisson.client.handler.CommandDecoder.decodeCommandBatch(CommandDecoder.java:246) at org.redisson.client.handler.CommandDecoder.decodeCommand(CommandDecoder.java:188) at org.redisson.client.handler.CommandDecoder.decode(CommandDecoder.java:116) at org.redisson.client.handler.CommandDecoder.decode(CommandDecoder.java:101) at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:508) at io.netty.handler.codec.ReplayingDecoder.callDecode(ReplayingDecoder.java:366) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:276) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:719) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493) at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.lang.Thread.run(Thread.java:745)分析一下,我这是windows的环境下运行的代码,windows下的redis,能解决这个问题吗 这是我下午遇到的问题
最新发布
03-08
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

九师兄

你的鼓励是我做大写作的动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值