A counter that attempts atomic increments. It first tries uses optimistic locking. If that fails, an optional {@link InterProcessMutex} is taken. For both optimistic and mutex, a retry policy is used toretry the increment.
The various increment methods return an {@link AtomicValue} object. You must always check{@link AtomicValue#succeeded()}. None of the methods (other than get()) are guaranteed to succeed.
|
|
|
|
|
|