My requirements call for creation of shared amount buckets/counters in the
cluster.  Given required scale/precision of my counters use of
IgniteAtomicLong won't be adequate.  I am thinking about using
IgniteAtomicReference<Double> or some such wrapper to hold double primitive
to accomplish that.  However, I couldn't find a *getAndAlter()*-like method
on IgniteAtomicReference that would allow me to perform counter increase
atomically.  Preferably, there would be getAndAlter(function) method, which
would perform set of operations on the counter atomically.

Any suggestions on how this can be implemented would be greatly appreciated.

Thanks in advance!
~george



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/IgniteAtomicReference-as-large-atomic-counter-tp1138.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Reply via email to