Class DomainEventEntry
java.lang.Object
org.axonframework.eventhandling.AbstractEventEntry<byte[]>
org.axonframework.eventhandling.AbstractDomainEventEntry<byte[]>
org.axonframework.eventhandling.AbstractSequencedDomainEventEntry<byte[]>
org.axonframework.eventsourcing.eventstore.jpa.DomainEventEntry
- All Implemented Interfaces:
DomainEventData<byte[]>,EventData<byte[]>
Default implementation of a tracked domain event entry. This implementation is used by the
JpaEventStorageEngine to store events. Event payload and metadata are serialized to a byte array.- Author:
- Rene de Waele
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor required by JPADomainEventEntry(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. -
Method Summary
Methods inherited from class org.axonframework.eventhandling.AbstractDomainEventEntry
getAggregateIdentifier, getSequenceNumber, getTypeMethods inherited from class org.axonframework.eventhandling.AbstractEventEntry
getEventIdentifier, getMetaData, getPayload, getTimestampMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.axonframework.eventhandling.DomainEventData
getAggregateIdentifier, getSequenceNumber, getTypeMethods inherited from interface org.axonframework.eventhandling.EventData
getEventIdentifier, getMetaData, getPayload, getTimestamp
-
Constructor Details
-
DomainEventEntry
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. The event payload and metadata will be serialized to a byte array.The given
serializerwill be used to serialize the payload and metadata in the giveneventMessage. The type of the serialized data will be the same as the givencontentType.- Parameters:
eventMessage- The event message to convert to a serialized event entryserializer- The serializer to convert the event
-
DomainEventEntry
protected DomainEventEntry()Default constructor required by JPA
-