Skip to content

Commit

Permalink
Passive event storage abstraction documentation should clearly define…
Browse files Browse the repository at this point in the history
… expectations on the way data is loaded.
  • Loading branch information
Sergey Borisov authored and Sergey Borisov committed Jan 29, 2018
1 parent 68b0f43 commit 5e33019
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,18 @@ public void Dispose()
/// </summary>
public interface IPassiveEventStore
{
/// <summary>
/// Loads <see cref="Transaction"/>s from the storage in the order that they should be projected (should be the same order that they were persisted).
/// </summary>
/// <remarks>
/// The implementation is allowed to return just a limited subset of items at a time.
/// It is up to the implementation to decide how many items should be returned at a time.
/// The only requirement is that the implementation should return at least one <see cref="Transaction"/>,
/// if there are any transactions having checkpoint (<see cref="Transaction.Checkpoint"/>) bigger than given one.
/// </remarks>
/// <param name="checkpoint">
/// Determines the value of the <see cref="Transaction.Checkpoint"/>, next to which <see cref="Transaction"/>s should be loaded from the storage.
/// </param>
IEnumerable<Transaction> GetFrom(long? checkpoint);
}
}

0 comments on commit 5e33019

Please sign in to comment.