Interface Precondition

All Known Implementing Classes:
Precondition.EventQlQueryIsTrue, Precondition.SubjectIsOnEventId, Precondition.SubjectIsPopulated, Precondition.SubjectIsPristine

Sealed interface for preconditions used for event publication to ensure consistency within the underlying event store.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final record 
    A precondition stating the given EventQuery must evaluate to true.
    static final record 
    A precondition stating the given subject must have been updated by the given event id.
    static final record 
    A precondition stating the given subject must already exist within the event store, that is at least one event must have been published for that subject.
    static final record 
    A precondition stating the given subject must not yet exist within the event store.