Package com.opencqrs.esdb.client
Interface Precondition
- All Known Implementing Classes:
Precondition.EventQlQueryIsTrue,Precondition.SubjectIsOnEventId,Precondition.SubjectIsPopulated,Precondition.SubjectIsPristine
public sealed interface Precondition
permits Precondition.SubjectIsOnEventId, Precondition.SubjectIsPristine, Precondition.SubjectIsPopulated, Precondition.EventQlQueryIsTrue
Sealed interface for preconditions used for
event publication to ensure
consistency within the underlying event store.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordA precondition stating the givenEventQuerymust evaluate totrue.static final recordA precondition stating the given subject must have been updated by the given event id.static final recordA 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 recordA precondition stating the given subject must not yet exist within the event store.