Class VersionedRecordExtension.Builder

    • Method Detail

      • startAt

        public VersionedRecordExtension.Builder startAt​(Long startAt)
        Sets the startAt used to compare if a record is the initial version of a record. Default value - 0.
        Parameters:
        startAt - the starting value for version comparison, must not be negative
        Returns:
        the builder instance
      • incrementBy

        public VersionedRecordExtension.Builder incrementBy​(Long incrementBy)
        Sets the amount to increment the version by with each subsequent update. Default value - 1.
        Parameters:
        incrementBy - the amount to increment the version by, must be greater than 0
        Returns:
        the builder instance