[jboss-user] [JBossCache] - Re: TreeCache: How to write atomic updates?
bstansberry@jboss.com
do-not-reply at jboss.com
Tue Sep 26 12:41:11 EDT 2006
There is no explicit lock/unlock API. To get the effect you want you should use a transaction; a RL will be acquired on the get() call; WL for the put/remove. Locks will be retained until the tx commits or rolls back. If for some reason the calling thread hangs, eventually the tx will time out adn the transaction manager will roll it back, releasing the locks.
Please note though that a call to exists() does not acquire any lock.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974283#3974283
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974283
More information about the jboss-user
mailing list