From: Trustin Lee [mailto:[EMAIL PROTECTED]

Right, there's no need to remember NextFilter with getNextFilter() methods.  But it doesn't mean that IoFilterChain can update the reference to NextFilter in runtime because it will raise concurrency issue definitely.


Whatever concurrency issues are here, we have them in the code today, as I am not changing the API and a session can modify its chain any time it wants. Even when still processing the previous event on a separate thread, a session-thread can start changing its chain and hence modifying NextFilter on another thread.

 

Not sure what you want to do about it.

 

Jose Alberto

 

Reply via email to