It would be useful if Infinispan supported cluster-wide atomic operations for java.lang.Number types in the API – similar to the AtomicX API in Java.
Right now, to cobble this functionality, we'd need to do something like:
- Start a tx
- Single-lock a key
- Get and increment
- And, of course, handle the cache exceptions =)