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
Post a Comment