◆ addAndGet()
virtual int64_t hazelcast::client::crdt::pncounter::PNCounter::addAndGet |
( |
int64_t |
delta | ) |
|
|
pure virtual |
Adds the given value to the current value.
- Parameters
-
- Returns
- the updated value
- Exceptions
-
NoDataMemberInClusterException | if the cluster does not contain any data members |
UnsupportedOperationException | if the cluster version is less than 3.10 |
ConsistencyLostException | if the session guarantees have been lost (see class level javadoc) |
- See also
- ClusterService::getClusterVersion()
◆ decrementAndGet()
virtual int64_t hazelcast::client::crdt::pncounter::PNCounter::decrementAndGet |
( |
| ) |
|
|
pure virtual |
Decrements by one the current value.
- Returns
- the updated value
- Exceptions
-
NoDataMemberInClusterException | if the cluster does not contain any data members |
UnsupportedOperationException | if the cluster version is less than 3.10 |
ConsistencyLostException | if the session guarantees have been lost (see class level javadoc) |
- See also
- ClusterService::getClusterVersion()
◆ get()
virtual int64_t hazelcast::client::crdt::pncounter::PNCounter::get |
( |
| ) |
|
|
pure virtual |
Returns the current value of the counter.
- Exceptions
-
NoDataMemberInClusterException | if the cluster does not contain any data members |
UnsupportedOperationException | if the cluster version is less than 3.10 |
ConsistencyLostException | if the session guarantees have been lost (see class level javadoc) |
- See also
- ClusterService::getClusterVersion()
◆ getAndAdd()
virtual int64_t hazelcast::client::crdt::pncounter::PNCounter::getAndAdd |
( |
int64_t |
delta | ) |
|
|
pure virtual |
Adds the given value to the current value.
- Parameters
-
- Returns
- the previous value
- Exceptions
-
NoDataMemberInClusterException | if the cluster does not contain any data members |
UnsupportedOperationException | if the cluster version is less than 3.10 |
ConsistencyLostException | if the session guarantees have been lost (see class level javadoc) |
- See also
- ClusterService::getClusterVersion()
◆ getAndDecrement()
virtual int64_t hazelcast::client::crdt::pncounter::PNCounter::getAndDecrement |
( |
| ) |
|
|
pure virtual |
Decrements by one the current value.
- Returns
- the previous value
- Exceptions
-
NoDataMemberInClusterException | if the cluster does not contain any data members |
UnsupportedOperationException | if the cluster version is less than 3.10 |
ConsistencyLostException | if the session guarantees have been lost (see class level javadoc) |
- See also
- ClusterService::getClusterVersion()
◆ getAndIncrement()
virtual int64_t hazelcast::client::crdt::pncounter::PNCounter::getAndIncrement |
( |
| ) |
|
|
pure virtual |
Increments by one the current value.
- Returns
- the previous value
- Exceptions
-
NoDataMemberInClusterException | if the cluster does not contain any data members |
UnsupportedOperationException | if the cluster version is less than 3.10 |
ConsistencyLostException | if the session guarantees have beenlost (see class level javadoc) |
- See also
- ClusterService::getClusterVersion()
◆ getAndSubtract()
virtual int64_t hazelcast::client::crdt::pncounter::PNCounter::getAndSubtract |
( |
int64_t |
delta | ) |
|
|
pure virtual |
Subtracts the given value from the current value.
- Parameters
-
- Returns
- the previous value
- Exceptions
-
NoDataMemberInClusterException | if the cluster does not contain any data members |
UnsupportedOperationException | if the cluster version is less than 3.10 |
ConsistencyLostException | if the session guarantees have been lost (see class level javadoc) |
- See also
- ClusterService::getClusterVersion()
◆ incrementAndGet()
virtual int64_t hazelcast::client::crdt::pncounter::PNCounter::incrementAndGet |
( |
| ) |
|
|
pure virtual |
Increments by one the current value.
- Returns
- the updated value
- Exceptions
-
NoDataMemberInClusterException | if the cluster does not contain any data members |
UnsupportedOperationException | if the cluster version is less than 3.10 |
ConsistencyLostException | if the session guarantees have been lost (see class level javadoc) |
- See also
- ClusterService::getClusterVersion()
◆ reset()
virtual void hazelcast::client::crdt::pncounter::PNCounter::reset |
( |
| ) |
|
|
pure virtual |
Resets the observed state by this PN counter.
This method may be used after a method invocation has thrown a ConsistencyLostException to reset the proxy and to be able to start a new session.
◆ subtractAndGet()
virtual int64_t hazelcast::client::crdt::pncounter::PNCounter::subtractAndGet |
( |
int64_t |
delta | ) |
|
|
pure virtual |
Subtracts the given value from the current value.
- Parameters
-
delta | the value to subtract |
- Returns
- the updated value
- Exceptions
-
NoDataMemberInClusterException | if the cluster does not contain any data members |
UnsupportedOperationException | if the cluster version is less than 3.10 |
ConsistencyLostException | if the session guarantees have been lost (see class level javadoc) |
- See also
- ClusterService::getClusterVersion()
The documentation for this class was generated from the following file:
- hazelcast/include/hazelcast/client/crdt/pncounter/PNCounter.h