hazelcast / hazelcast/hazelcast-cpp-client

[TRACKING ISSUE] Add getAndDecrement method to IAtomicLong

Open
#794 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
91
Forks
54
Avg merge
1d 12m
Merged PRs (30d)
5

Description

The tracking issue for the Java side PR.

**Add getAndDecrement method to IAtomicLong**

See https://github.com/hazelcast/hazelcast/pull/17699 for details.

---

There were getAndDoX and doXAndGet method pairs for the IAtomicLong
but there were just the decrementAndGet, getAndDecrement was missing.
One may do getAndAdd(-1) to get the desired behaviour, so there were
no missing functionality but the getAndDecrement method is added to
make the API more consistent.

Also, updated the codecs and message tasks of the LongRegister with
the recent changes.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.