Alternative to MINA attributes

brunodecarvalho kindernade at gmail.com
Wed Aug 25 19:02:23 EDT 2010


Simple answer is: instance variables on the channel handlers. The model for
MINA is a bit different so you can think of your last ChannelHandler as the
IoSession. Just use instance variables there.

If, however, your channel handler is @Sharable (stateless, one instance for
all pipelines) you can use the ChannelHandlerContext's get/setAttachment().


Bruno
-- 
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Alternative-to-MINA-attributes-tp5461125p5463499.html
Sent from the Netty User Group mailing list archive at Nabble.com.


More information about the netty-users mailing list