English 中文(简体)
Channel.channel InterestChanged in Netty
原标题:Channel.channelInterestChanged in Netty
  • 时间:2012-04-12 22:12:15
  •  标签:
  • java
  • netty

I am working with Netty Channels and when sending lots of data across the channel , I notice that the Channel.channelInterestChanged event gets fired, which immediately results in Channel.isWritable() to return false.( there is another thread doing a Channel.write() and this thread fails immediately ). My question is : why is the Channel s interests getting changed ? or rather who is changing it ? Nothing in code that I wrote ( server or client ) changes the interests.

最佳回答

由于你向频道撰写更多的数据,因此可以在特定时间传送。 网上查询了你的数据,直到某些战线被击中时为止。

页: 1 如果你想要改变多少 by子在频道上被带/带走的话,就会打上标记。

ServerBootstrap sb = ....
sb.setOption("writeBufferHighWaterMark", ..);
sb.setOption("writeBufferLowWaterMark", ..);

不管怎样,你们都应确保,你称之为“频道......”的法规确实检查了“频道”。 你经常看到的问题是网络缓慢。

http://netty.io/docs/stable/api/org/jbos/netty/channel/socket/nio/NioChannelConfig.html

问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签