@Entity public class DomainEventEntry extends AbstractSequencedDomainEventEntry<byte[]>
JpaEventStorageEngine
to store events. Event payload and metadata are serialized to a byte array.Modifier | Constructor and Description |
---|---|
protected |
DomainEventEntry()
Default constructor required by JPA
|
|
DomainEventEntry(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.
|
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 DomainEventEntry(DomainEventMessage<?> eventMessage, Serializer serializer)
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 eventprotected DomainEventEntry()
Copyright © 2010–2020. All rights reserved.