@MappedSuperclass public abstract class AbstractSequencedDomainEventEntry<T> extends AbstractDomainEventEntry<T> implements DomainEventData<T>
Modifier | Constructor and Description |
---|---|
protected |
AbstractSequencedDomainEventEntry()
Default constructor required by JPA
|
|
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.
|
getAggregateIdentifier, getSequenceNumber, getType
getEventIdentifier, getMetaData, getPayload, getTimestamp
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAggregateIdentifier, getSequenceNumber, getType
getEventIdentifier, getMetaData, getPayload, getTimestamp
public AbstractSequencedDomainEventEntry(DomainEventMessage<?> eventMessage, Serializer serializer, Class<T> contentType)
The given serializer
will be used to serialize the payload and metadata in the given eventMessage
. The type of the serialized data will be the same as the given contentType
.
eventMessage
- The event message to convert to a serialized event entryserializer
- The serializer to convert the eventcontentType
- The data type of the payload and metadata after serializationprotected AbstractSequencedDomainEventEntry()
Copyright © 2010–2023. All rights reserved.