How can I set priority for messages in Netty sending queue -


i have situation use small buffer size outbound messages in channel. , try send lot of messages on channel. sounds there queue used on netty level because when submit messages netty manages send them away after period of time.

my question is: possible specify priorities messages way regulate order of sending? instance, have messages in sending queue, last message have submitted should sent first. (i.e. should go beginning of sending queue).

btw, netty version 4.0.0.cr6.

without knowing internals of netty 4, still that, no, not possible. once chunk of bytes reaches channel sink (that concept in netty 3) @ mercy of internal buffering , queuing, , therein no idea of priority, order.

of course, outbound handler (downstream in netty3) buffer messages, reorder them according algorithm or rules, , release them sink, (certainly ?) not op wants.


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -