Interface DeltaCount

All Superinterfaces:
Count, GCount, PNCount
All Known Subinterfaces:
DeltaCounter
All Known Implementing Classes:
StateBasedPNDeltaCounter

public interface DeltaCount extends PNCount
A Count that also tracks changes to the value within the last interval.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the changes in the current value during the last interval.
    Get the value of this count prior to the changes.
    default boolean
    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 Details

    • 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-zero changes, or false otherwise
    • getPriorCount

      Count getPriorCount()
      Get the value of this count prior to the changes.
      Returns:
      the prior count; never null