Package io.debezium.crdt
Interface DeltaCount
-
- All Known Subinterfaces:
DeltaCounter
- All Known Implementing Classes:
StateBasedPNDeltaCounter
public interface DeltaCount extends PNCount
ACountthat also tracks changes to the value within the last interval.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PNCountgetChanges()Get the changes in the current value during the last interval.CountgetPriorCount()Get the value of this count prior to thechanges.default booleanhasChanges()Determine if there are any changes in this count.-
Methods inherited from interface io.debezium.crdt.GCount
getIncrement
-
Methods inherited from interface io.debezium.crdt.PNCount
get, getDecrement
-
-
-
-
Method Detail
-
getChanges
PNCount getChanges()
Get the changes in the current value during the last interval.- Returns:
- the changes in the value during the last interval; never null
-
hasChanges
default boolean hasChanges()
Determine if there are any changes in this count.- Returns:
trueif there are non-zerochanges, orfalseotherwise
-
-