当我只有ChannelHandlerContext时如何注销流 [英] how to deregister a stream when all I have is ChannelHandlerContext

查看:119
本文介绍了当我只有ChannelHandlerContext时如何注销流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用ChannelHandlerContext对象注销Netty中的读取?

Is there a way to deregister the reads in netty with the ChannelHandlerContext object?

一个人如何注销读物?我们的系统正在备份,需要本地nic缓冲区填满(这将导致远程缓冲区填满,这会减慢客户端的速度,直到我们可以从该套接字处理更多数据为止).

how does one deregister for reads? Our system is getting backed up and need the local nic buffer to fill up (which will cause the remote one to fill up which slows down the client until we can process more data from that socket).

关于如何使用该对象注销读取的任何想法?

Any ideas on how to use that object to deregister for reads?

谢谢, 院长

推荐答案

啊,那里....

ctx.getChannel().setReadable(true);

ctx.getChannel().setReadable(true);

这篇关于当我只有ChannelHandlerContext时如何注销流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆