[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Elegant way of Variable Latch for the waits on AIO?

timfox do-not-reply at jboss.com
Wed May 7 02:38:31 EDT 2008


Could you just store the count in an AtomicInteger before commit.

Then, when commit (or rollback) arrives if the count != 0 (in many cases it may already be zero) either create a CountDownLatch (or use Object.wait/notify) to wait for the remaining persistences.

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4148996



More information about the jboss-dev-forums mailing list