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 TypeMethodDescriptionbooleanconsume(HistoryEntry entry, int changesCount) Consume streamedHistoryEntrywith the total number of changes associated with it.
-
Method Details
-
consume
Consume streamedHistoryEntrywith the total number of changes associated with it.- Parameters:
entry- history entry.changesCount- total number of changes associated withentry. this value will differ fromentry.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.
-