Jesse Hou wrote: > Hello All, When I read the source code of Mina, I found that in class > IoFilter there are tow methods "void filterWrite( IoSession session, > WriteRequest writeRequest );" and "void filterClose( IoSession session > );" > when they are invoked they go through FilterChain from tail to head , but > other methods go through FilterChain from head to tail, what's the > difference ? Is there any limitation ? Thank you very much. > No, no limitation. The reason is that these events are generated by your code and consumed by MINA. They are typically generated from within your IoHandler by a call to session.write() or session.close() and will travel through the filter chain in the opposite direction (last filter in chain will see the event first). The other events are instead generated by MINA and will be consumed by your IoHandler.
-- Niklas Therning www.spamdrain.net
