Or Mina will remove them automatically?
 
 
And what should I do if I want to add lots of attributes to one IoSession?
 
Should I add them separately like this:
 
session.setAttachment(k1,v1);
session.setAttachment(k2,v2);
session.setAttachment(k3,v3);
 
Or should I create an class that contains all these attributes and then add 
this class to the IoSession's attribute map?
 
 
Is there any way to customize the IoSession class?
 
I mean , can I create my own IoSession class that contains all the attributes 
that I need and then call some methods like this to use it:
 
acceptor.SetIoSession(myOwnIoSession);
 
 
Thank you!
 
Steven

Reply via email to