Package io.debezium.crdt
Interface PNCount
-
- All Known Subinterfaces:
DeltaCount
,DeltaCounter
,PNCounter
- All Known Implementing Classes:
StateBasedPNCounter
,StateBasedPNDeltaCounter
public interface PNCount extends GCount
A read-only result of the state of aPNCounter
. The value may or may not change depending upon how the value was obtained.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default long
get()
Get the current value.long
getDecrement()
Get the amount that the value decremented.-
Methods inherited from interface io.debezium.crdt.GCount
getIncrement
-
-
-
-
Method Detail
-
get
default long get()
Get the current value.
-
getDecrement
long getDecrement()
Get the amount that the value decremented. Thevalue
is thetotal increments
minus thetotal decrements
- Returns:
- the decremented value
-
-