Interface LimitedHistoryConsumer


public interface LimitedHistoryConsumer
Same principle as HistoryConsumer. Used in the context of querying history while limiting the number of changes that are loaded per HistoryEntry.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    consume(HistoryEntry entry, int changesCount)
    Consume streamed HistoryEntry with the total number of changes associated with it.
  • Method Details

    • consume

      boolean consume(HistoryEntry entry, int changesCount)
      Consume streamed HistoryEntry with the total number of changes associated with it.
      Parameters:
      entry - history entry.
      changesCount - total number of changes associated with entry. this value will differ from entry.getChanges().size() when the query uses changes limit and the limit is surpassed for a given entry.
      Returns:
      boolean tells the user of this consumer to continue (true) or stop (false) providing data.