Package io.debezium.crdt
Interface DeltaCount
-
- All Known Subinterfaces:
DeltaCounter
- All Known Implementing Classes:
StateBasedPNDeltaCounter
public interface DeltaCount extends PNCount
ACount
that 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 PNCount
getChanges()
Get the changes in the current value during the last interval.Count
getPriorCount()
Get the value of this count prior to thechanges
.default boolean
hasChanges()
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:
true
if there are non-zerochanges
, orfalse
otherwise
-
-