#include <Counters.h>
virtual infinispan::hotrod::StrongCounter::~StrongCounter |
( |
| ) |
|
|
inlinevirtual |
virtual long infinispan::hotrod::StrongCounter::addAndGet |
( |
long |
delta | ) |
|
|
pure virtual |
Atomically adds the given value and return the new value.
- Parameters
-
delta | The non-zero value to add. It can be negative. |
- Returns
- The new value.
virtual bool infinispan::hotrod::StrongCounter::compareAndSet |
( |
long |
expect, |
|
|
long |
update |
|
) |
| |
|
pure virtual |
Atomically sets the value to the given updated value if the current value
the expected value.
It is the same as
return compareAndSwap(expect, update).thenApply(value -> value == expect);
- Parameters
-
expect | the expected value |
update | the new value |
- Returns
- if successful, otherwise.
virtual long infinispan::hotrod::StrongCounter::compareAndSwap |
( |
long |
expect, |
|
|
long |
update |
|
) |
| |
|
pure virtual |
Atomically sets the value to the given updated value if the current value
the expected value.
The operation is successful if the return value is equals to the expected value.
- Parameters
-
expect | the expected value. |
update | the new value. |
- Returns
- the previous counter's value.
virtual long infinispan::hotrod::StrongCounter::decrementAndGet |
( |
| ) |
|
|
pure virtual |
Atomically decrements the counter and returns the new value
- Returns
- The new value.
virtual long infinispan::hotrod::StrongCounter::getValue |
( |
| ) |
|
|
pure virtual |
It fetches the current value.
It may go remotely to fetch the current value.
- Returns
- The current value.
virtual long infinispan::hotrod::StrongCounter::incrementAndGet |
( |
| ) |
|
|
pure virtual |
Atomically increments the counter and returns the new value.
- Returns
- The new value.
The documentation for this class was generated from the following file:
- /home/infinispan/workspace/CppRelease/8.3.1.Final/include/infinispan/hotrod/Counters.h