[jboss-dev-forums] [Design of JBoss Remoting, Unified Invokers] - Re: Interruption and the Remoting 3 API
david.lloyd@jboss.com
do-not-reply at jboss.com
Tue Sep 18 22:21:51 EDT 2007
One consequence of using a RemotingException subclass is that, unlike when using InterruptedException, the thread must be re-interrupted before throwing the exception. So user code that doesn't check for it, will be interrupted at the next interruptable point anyway. On the other hand, if the user does catch the interruption subclass, they may have to clear the thread's interruption status in addition to catching the exception. This is in contrast to user code that catches InterruptedException; such code already has had the thread's interruption status cleared. I'm not sure if this will be an advantage or disadvantage though.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085816#4085816
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4085816
More information about the jboss-dev-forums
mailing list