Interface PNCount

All Superinterfaces:
Count, GCount
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 a PNCounter. The value may or may not change depending upon how the value was obtained.
  • Method Summary

    Modifier and Type
    Method
    Description
    default long
    get()
    Get the current value.
    long
    Get the amount that the value decremented.

    Methods inherited from interface io.debezium.crdt.GCount

    getIncrement
  • Method Details

    • get

      default long get()
      Get the current value.
      Specified by:
      get in interface Count
      Returns:
      the current value
    • getDecrement

      long getDecrement()
      Get the amount that the value decremented. The value is the total increments minus the total decrements
      Returns:
      the decremented value