OrderSummaries

fun interface OrderSummaries

Where the order summaries are kept: a table, a document collection, a search index. A port of the OrderSummaryProjection, which the server binds to its store and a test fakes.

Functions

Link copied to clipboard
abstract fun save(summary: OrderSummary, version: Int)

Saves summary as the order's summary at version, unless the store already holds one of that version or a later one: a commit may be handled more than once (a retry, a replay, a lease handover), and an older commit must never overwrite a newer one.