ctx.sendXXStream vs fireXxxxXxxx() vs .write(ctx,...)

falconair shahbazc at gmail.com
Mon Dec 28 15:35:02 EST 2009


Another newbie question here,
In the examples, I see messages being propagated from one filter to another
(upstream or downstream) using one of three main way:

context.sendUpStream (or downstream)
fireMessageReceived (or fireXXX)
channel.write(context,...)

Documentation doesn't make clear when one should be preferred over another.
(actually
http://www.jboss.org/file-access/default/members/netty/freezone/api/3.1/org/jboss/netty/channel/Channels.html
recommends avoid using sendUpStream/sendDownStream, but it is used in text
protocol examples on netty's site.

Which is the right way to move messages between filter?

Thanks
-- 
View this message in context: http://n2.nabble.com/ctx-sendXXStream-vs-fireXxxxXxxx-vs-write-ctx-tp4225127p4225127.html
Sent from the Netty User Group mailing list archive at Nabble.com.


More information about the netty-users mailing list