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. The first version written to a new record is calculated as startAt + incrementBy. Default value - 0.
        Parameters:
        startAt - the starting value for version comparison, must be -1 or greater
        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