requireRevisions

fun requireRevisions(aggregate: AggregateType, events: List<StateEventPayload>, type: Class<*>?)

Refuses events, a published stream's of the aggregate aggregate, when one of them is an event a handler of type takes, at a revision its contract does not declare (#7604): the handling fails, so the subscription retries and parks the aggregate, as the service's own subscriptions do for a revision their model cannot read, rather than passing the commit over as if it held another event. It is asked once a commit, before any call, so a commit is handled whole or not at all. A handler of no type, the whole stream's, takes every revision, as a PublishedEvent.