[infinispan-dev] Atomic operations and transactions
Manik Surtani
manik at jboss.org
Mon Jul 11 05:45:43 EDT 2011
On 4 Jul 2011, at 07:57, Galder Zamarreño wrote:
> I get the feeling that those atomic operations are particularly useful when transactions are not used cos they allow you to reduce to cache operations to one, hence avoiding the need to use a lock or synchronized block, or in our case, a transaction.
Precisely. I think the atomic ops should be documented such that they are not used within a transaction scope, possibly either:
1) suspending any ongoing tx if used, or
2) throwing an illegal state exception if used within a tx scope
--
Manik Surtani
manik at jboss.org
twitter.com/maniksurtani
Lead, Infinispan
http://www.infinispan.org
More information about the infinispan-dev
mailing list