Package com.opencqrs.esdb.client
Interface Precondition
- All Known Implementing Classes:
Precondition.SubjectIsOnEventId
,Precondition.SubjectIsPristine
public sealed interface Precondition
permits Precondition.SubjectIsOnEventId, Precondition.SubjectIsPristine
Sealed interface for preconditions used for
event publication
to ensure
consistency within the underlying event store.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic 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 not yet exist within the event store.