Iterates over messages in the provided changelog
using the provided
until all messages have been consumed.
The iterator has a
that depends on its position in the changelog SSP. If trim mode
is enabled, the mode switches to
if the current message offset is greater than the
, or if
The iterator mode is used during transactional state restore to determine which changelog SSP entries
should be restored and which ones need to be reverted / trimmed from the changelog topic.