Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

[jboss-user] [JBossCache] - Re: Getting InterruptedException while
 putting into tree cac

scott.stark@jboss.org

2007-08-07



JBoss Cache uses the older Doug Lea concurrent library which throws InterruptedException from all lock methods if the thread was interrupted. The newer 1.5 concurrent methods mostly don't do this.

It's mostly done as a favor. If a thread is interrupted, typically the purpose of this interrupt is for timely shutdown of the thread.

Regarding the exception thrown, any method in Java can throw a RuntimeException, which is what is happening here.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4071744#4071744

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4071744
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.