Uses of Interface
org.axonframework.eventhandling.DomainEventMessage
Packages that use DomainEventMessage
Package
Description
Classes related to event handling and dispatching, such as
Event Listeners and the Event Bus.Classes related to event sourcing.
Definitions and implementations of the Event store, the mechanism that can load event streams and append events to
them.
JDBC Implementation of the EventStore.
JPA Implementation of the EventStore.
-
Uses of DomainEventMessage in org.axonframework.axonserver.connector.event.axon
Methods in org.axonframework.axonserver.connector.event.axon that return types with arguments of type DomainEventMessageModifier and TypeMethodDescriptionprotected Optional<DomainEventMessage<?>> AxonServerEventStore.handleSnapshotReadingError(String aggregateIdentifier, Throwable e) -
Uses of DomainEventMessage in org.axonframework.config
Method parameters in org.axonframework.config with type arguments of type DomainEventMessageModifier and TypeMethodDescriptionAggregateConfigurer.configureEventStreamFilter(Function<Configuration, Predicate<? super DomainEventMessage<?>>> filterBuilder) Configures an event stream filter for the EventSourcingRepository for the Aggregate type under configuration. -
Uses of DomainEventMessage in org.axonframework.eventhandling
Classes in org.axonframework.eventhandling that implement DomainEventMessageModifier and TypeClassDescriptionclassGeneric implementation of aDomainEventMessage.classGeneric implementation of aDomainEventMessagethat is also aTrackedEventMessage.Methods in org.axonframework.eventhandling that return DomainEventMessageModifier and TypeMethodDescriptionDomainEventMessage.andMetaData(Map<String, ?> metaData) Returns a copy of this DomainEventMessage with its MetaData merged with the givenmetaData.static <T> DomainEventMessage<T> EventUtils.asDomainEventMessage(EventMessage<T> eventMessage) Deprecated.since this method is not used for external use.DomainEventMessage.withMetaData(Map<String, ?> metaData) Returns a copy of this DomainEventMessage with the givenmetaData.Constructors in org.axonframework.eventhandling with parameters of type DomainEventMessageModifierConstructorDescriptionAbstractDomainEventEntry(DomainEventMessage<?> eventMessage, Serializer serializer, Class<T> contentType) Construct a new event entry from a published domain event message to enable storing the event or sending it to a remote location.AbstractSequencedDomainEventEntry(DomainEventMessage<?> eventMessage, Serializer serializer, Class<T> contentType) Construct a new default domain event entry from a published domain event message to enable storing the event or sending it to a remote location.GenericTrackedDomainEventMessage(TrackingToken trackingToken, DomainEventMessage<T> delegate) Initialize a DomainEventMessage originating from an aggregate. -
Uses of DomainEventMessage in org.axonframework.eventsourcing
Fields in org.axonframework.eventsourcing with type parameters of type DomainEventMessageModifier and TypeFieldDescriptionprotected Predicate<? super DomainEventMessage<?>> EventSourcingRepository.Builder.eventStreamFilterMethods in org.axonframework.eventsourcing that return DomainEventMessageModifier and TypeMethodDescriptionprotected abstract DomainEventMessageAbstractSnapshotter.createSnapshot(Class<?> aggregateType, String aggregateIdentifier, DomainEventStream eventStream) Creates a snapshot event for an aggregate of which passed events are available in the giveneventStream.protected DomainEventMessageAggregateSnapshotter.createSnapshot(Class<?> aggregateType, String aggregateIdentifier, DomainEventStream eventStream) Methods in org.axonframework.eventsourcing that return types with arguments of type DomainEventMessageModifier and TypeMethodDescriptionstatic Stream<? extends DomainEventMessage<?>> EventStreamUtils.asStream(DomainEventStream domainEventStream) Convert the givendomainEventStreamto a regular javaStreamof domain event messages.FilteringEventStorageEngine.readSnapshot(String aggregateIdentifier) Methods in org.axonframework.eventsourcing with parameters of type DomainEventMessageModifier and TypeMethodDescriptionfinal TAbstractAggregateFactory.createAggregateRoot(String aggregateIdentifier, DomainEventMessage<?> firstEvent) AggregateFactory.createAggregateRoot(String aggregateIdentifier, DomainEventMessage<?> firstEvent) Instantiate the aggregate root using the given aggregate identifier and first event.protected abstract TAbstractAggregateFactory.doCreateAggregate(String aggregateIdentifier, DomainEventMessage firstEvent) Create an uninitialized Aggregate instance with the givenaggregateIdentifier.protected TGenericAggregateFactory.doCreateAggregate(String aggregateIdentifier, DomainEventMessage firstEvent) Create an uninitialized Aggregate instance with the givenaggregateIdentifier.voidFilteringEventStorageEngine.storeSnapshot(DomainEventMessage<?> snapshot) Method parameters in org.axonframework.eventsourcing with type arguments of type DomainEventMessageModifier and TypeMethodDescriptionEventSourcingRepository.Builder.eventStreamFilter(Predicate<? super DomainEventMessage<?>> filter) Sets thePredicateused to filter events when reading from the EventStore. -
Uses of DomainEventMessage in org.axonframework.eventsourcing.conflictresolution
Methods in org.axonframework.eventsourcing.conflictresolution that return types with arguments of type DomainEventMessageModifier and TypeMethodDescriptionstatic <T> Predicate<List<DomainEventMessage<?>>> Conflicts.payloadMatching(Class<T> payloadType, Predicate<? super T> payloadFilter) Returns aPredicatefor aConflictResolverthat responds affirmative if the payload of any event in a list of unseen events is of givenpayloadTypeand matches the givenmessageFilter.static Predicate<List<DomainEventMessage<?>>> Conflicts.payloadMatching(Predicate<Object> payloadFilter) Returns aPredicatefor aConflictResolverthat responds affirmative if the payload of any event in a list of unseen events matches the givenmessageFilter.static <T> Predicate<List<DomainEventMessage<?>>> Conflicts.payloadTypeOf(Class<T> payloadType) Returns aPredicatefor aConflictResolverthat responds affirmative if the payload type of any event in a list of unseen events is assignable to givenpayloadType.ConflictDescription.unexpectedEvents()The list of events that have been registered with this aggregate since the expected version.DefaultConflictDescription.unexpectedEvents()Method parameters in org.axonframework.eventsourcing.conflictresolution with type arguments of type DomainEventMessageModifier and TypeMethodDescriptiondefault voidConflictResolver.detectConflicts(Predicate<List<DomainEventMessage<?>>> predicate) Resolve conflicts between changes to be applied to the aggregate and unseen changes made to the aggregate.default <T extends Exception>
voidConflictResolver.detectConflicts(Predicate<List<DomainEventMessage<?>>> predicate, ConflictExceptionSupplier<T> exceptionSupplier) Resolve conflicts between unseen changes made to the aggregate and new changes that are about to be made.<T extends Exception>
voidConflictResolver.detectConflicts(Predicate<List<DomainEventMessage<?>>> predicate, ContextAwareConflictExceptionSupplier<T> exceptionSupplier) Resolve conflicts between unseen changes made to the aggregate and new changes that are about to be made.<T extends Exception>
voidDefaultConflictResolver.detectConflicts(Predicate<List<DomainEventMessage<?>>> predicate, ContextAwareConflictExceptionSupplier<T> exceptionSupplier) voidNoConflictResolver.detectConflicts(Predicate<List<DomainEventMessage<?>>> predicate) <T extends Exception>
voidNoConflictResolver.detectConflicts(Predicate<List<DomainEventMessage<?>>> predicate, ConflictExceptionSupplier<T> exceptionSupplier) <T extends Exception>
voidNoConflictResolver.detectConflicts(Predicate<List<DomainEventMessage<?>>> predicate, ContextAwareConflictExceptionSupplier<T> exceptionSupplier) Constructor parameters in org.axonframework.eventsourcing.conflictresolution with type arguments of type DomainEventMessageModifierConstructorDescriptionDefaultConflictDescription(String aggregateIdentifier, long expectedVersion, long actualVersion, List<DomainEventMessage<?>> unexpectedEvents) Initialize the instance using given values. -
Uses of DomainEventMessage in org.axonframework.eventsourcing.eventstore
Methods in org.axonframework.eventsourcing.eventstore that return DomainEventMessageModifier and TypeMethodDescriptionConcatenatingDomainEventStream.next()DomainEventStream.next()Returns the next events in the stream, if available.FilteringDomainEventStream.next()IteratorBackedDomainEventStream.next()ConcatenatingDomainEventStream.peek()DomainEventStream.peek()Returns the next events in the stream, if available, without moving the pointer forward.FilteringDomainEventStream.peek()IteratorBackedDomainEventStream.peek()Methods in org.axonframework.eventsourcing.eventstore that return types with arguments of type DomainEventMessageModifier and TypeMethodDescriptiondefault Stream<? extends DomainEventMessage<?>> DomainEventStream.asStream()Returns this DomainEventStream as aStreamof DomainEventMessages.protected Optional<DomainEventMessage<?>> AbstractEventStore.handleSnapshotReadingError(String aggregateIdentifier, Throwable e) Invoked when an error (ExceptionorLinkageError) occurs while attempting to read a snapshot event.AbstractEventStorageEngine.readSnapshot(String aggregateIdentifier) EventStorageEngine.readSnapshot(String aggregateIdentifier) Try to load a snapshot event of the aggregate with givenaggregateIdentifier.SequenceEventStorageEngine.readSnapshot(String aggregateIdentifier) protected Stream<? extends DomainEventMessage<?>> AbstractEventStore.stagedDomainEventMessages(String aggregateIdentifier) Returns a Stream of all DomainEventMessages that have been staged for publication by an Aggregate with givenaggregateIdentifier.Methods in org.axonframework.eventsourcing.eventstore with parameters of type DomainEventMessageModifier and TypeMethodDescriptionstatic DomainEventStreamDomainEventStream.of(DomainEventMessage<?> event) Create a new DomainEventStream containing only the givenevent.static DomainEventStreamDomainEventStream.of(DomainEventMessage<?>... events) Create a new DomainEventStream from the givenevents.voidAbstractEventStorageEngine.storeSnapshot(DomainEventMessage<?> snapshot) protected abstract voidAbstractEventStorageEngine.storeSnapshot(DomainEventMessage<?> snapshot, Serializer serializer) Store the givensnapshotof an Aggregate.voidAbstractEventStore.storeSnapshot(DomainEventMessage<?> snapshot) voidEventStorageEngine.storeSnapshot(DomainEventMessage<?> snapshot) Store an event that contains a snapshot of an aggregate.voidEventStore.storeSnapshot(DomainEventMessage<?> snapshot) Stores the given (temporary)snapshotevent.voidSequenceEventStorageEngine.storeSnapshot(DomainEventMessage<?> snapshot) Method parameters in org.axonframework.eventsourcing.eventstore with type arguments of type DomainEventMessageModifier and TypeMethodDescriptiondefault DomainEventStreamDomainEventStream.filter(Predicate<? super DomainEventMessage<?>> filter) Returns a stream that provides the items of this stream that match the givenfilter.static DomainEventStreamDomainEventStream.of(List<? extends DomainEventMessage<?>> list) Create a new DomainEventStream with events obtained from the givenlist.static DomainEventStreamDomainEventStream.of(Stream<? extends DomainEventMessage<?>> stream) Create a new DomainEventStream with events obtained from the givenstream.static DomainEventStreamDomainEventStream.of(Stream<? extends DomainEventMessage<?>> stream, Supplier<Long> sequenceNumberSupplier) Create a new DomainEventStream with events obtained from the givenstream.Constructors in org.axonframework.eventsourcing.eventstore with parameters of type DomainEventMessageModifierConstructorDescriptionAbstractSnapshotEventEntry(DomainEventMessage<?> eventMessage, Serializer serializer, Class<T> contentType) Construct a new event entry from a published domain event message to enable storing the event or sending it to a remote location.Constructor parameters in org.axonframework.eventsourcing.eventstore with type arguments of type DomainEventMessageModifierConstructorDescriptionFilteringDomainEventStream(DomainEventStream delegate, Predicate<? super DomainEventMessage<?>> filter) Initialize the stream, filter the givenstreamwith the givenfilter.IteratorBackedDomainEventStream(Iterator<? extends DomainEventMessage<?>> iterator) Initialize the stream which provides access to message from the giveniterator -
Uses of DomainEventMessage in org.axonframework.eventsourcing.eventstore.inmemory
Methods in org.axonframework.eventsourcing.eventstore.inmemory that return types with arguments of type DomainEventMessageModifier and TypeMethodDescriptionInMemoryEventStorageEngine.readSnapshot(String aggregateIdentifier) Methods in org.axonframework.eventsourcing.eventstore.inmemory with parameters of type DomainEventMessageModifier and TypeMethodDescriptionvoidInMemoryEventStorageEngine.storeSnapshot(DomainEventMessage<?> snapshot) -
Uses of DomainEventMessage in org.axonframework.eventsourcing.eventstore.jdbc
Methods in org.axonframework.eventsourcing.eventstore.jdbc with parameters of type DomainEventMessageModifier and TypeMethodDescriptionprotected PreparedStatementJdbcEventStorageEngine.appendSnapshot(Connection connection, DomainEventMessage<?> snapshot, Serializer serializer) Creates a statement to be used atAbstractEventStorageEngine.storeSnapshot(DomainEventMessage).protected voidJdbcEventStorageEngine.storeSnapshot(DomainEventMessage<?> snapshot, Serializer serializer) -
Uses of DomainEventMessage in org.axonframework.eventsourcing.eventstore.jdbc.statements
Methods in org.axonframework.eventsourcing.eventstore.jdbc.statements that return DomainEventMessageModifier and TypeMethodDescriptionprotected static <T> DomainEventMessage<T> JdbcEventStorageEngineStatements.asDomainEventMessage(EventMessage<T> event) Converts anEventMessageto aDomainEventMessage.Methods in org.axonframework.eventsourcing.eventstore.jdbc.statements with parameters of type DomainEventMessageModifier and TypeMethodDescriptionstatic PreparedStatementJdbcEventStorageEngineStatements.appendSnapshot(Connection connection, EventSchema schema, Class<?> dataType, DomainEventMessage<?> snapshot, Serializer serializer, TimestampWriter timestampWriter) Set the PreparedStatement to be used onJdbcEventStorageEngine.storeSnapshot(DomainEventMessage, Serializer).AppendSnapshotStatementBuilder.build(Connection connection, EventSchema schema, Class<?> dataType, DomainEventMessage<?> snapshot, Serializer serializer, TimestampWriter timestampWriter) Creates a statement to be used atJdbcEventStorageEngine.storeSnapshot(DomainEventMessage, Serializer) -
Uses of DomainEventMessage in org.axonframework.eventsourcing.eventstore.jpa
Methods in org.axonframework.eventsourcing.eventstore.jpa that return DomainEventMessageModifier and TypeMethodDescriptionprotected static <T> DomainEventMessage<T> JpaEventStorageEngine.asDomainEventMessage(EventMessage<T> event) Converts anEventMessageto aDomainEventMessage.Methods in org.axonframework.eventsourcing.eventstore.jpa with parameters of type DomainEventMessageModifier and TypeMethodDescriptionprotected ObjectJpaEventStorageEngine.createSnapshotEntity(DomainEventMessage<?> snapshot, Serializer serializer) Returns a Jpa snapshot entity for givensnapshotof an aggregate.protected voidJpaEventStorageEngine.storeSnapshot(DomainEventMessage<?> snapshot, Serializer serializer) Constructors in org.axonframework.eventsourcing.eventstore.jpa with parameters of type DomainEventMessageModifierConstructorDescriptionDomainEventEntry(DomainEventMessage<?> eventMessage, Serializer serializer) Construct a new default domain event entry from a published domain event message to enable storing the event or sending it to a remote location.SnapshotEventEntry(DomainEventMessage<?> eventMessage, Serializer serializer) Construct a new default snapshot event entry from an aggregate. -
Uses of DomainEventMessage in org.axonframework.eventsourcing.eventstore.legacyjpa
Methods in org.axonframework.eventsourcing.eventstore.legacyjpa that return DomainEventMessageModifier and TypeMethodDescriptionprotected static <T> DomainEventMessage<T> JpaEventStorageEngine.asDomainEventMessage(EventMessage<T> event) Deprecated.Converts anEventMessageto aDomainEventMessage.Methods in org.axonframework.eventsourcing.eventstore.legacyjpa with parameters of type DomainEventMessageModifier and TypeMethodDescriptionprotected ObjectJpaEventStorageEngine.createSnapshotEntity(DomainEventMessage<?> snapshot, Serializer serializer) Deprecated.Returns a Jpa snapshot entity for givensnapshotof an aggregate.protected voidJpaEventStorageEngine.storeSnapshot(DomainEventMessage<?> snapshot, Serializer serializer) Deprecated. -
Uses of DomainEventMessage in org.axonframework.spring.eventsourcing
Methods in org.axonframework.spring.eventsourcing with parameters of type DomainEventMessageModifier and TypeMethodDescriptionSpringPrototypeAggregateFactory.createAggregateRoot(String aggregateIdentifier, DomainEventMessage<?> firstEvent)