@Entity public class SnapshotEventEntry extends AbstractSnapshotEventEntry<byte[]>
JpaEventStorageEngine
to store snapshot events. Event payload and metadata are serialized to a
byte array.AbstractSnapshotEventEntry.PK
Modifier | Constructor and Description |
---|---|
protected |
SnapshotEventEntry()
Default constructor required by JPA
|
|
SnapshotEventEntry(DomainEventMessage<?> eventMessage,
Serializer serializer)
Construct a new default snapshot event entry from an aggregate.
|
getAggregateIdentifier, getSequenceNumber, getType
getEventIdentifier, getMetaData, getPayload, getTimestamp
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEventIdentifier, getMetaData, getPayload, getTimestamp
public SnapshotEventEntry(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 snapshot event message to convert to a serialized event entryserializer
- The serializer to convert the snapshot eventprotected SnapshotEventEntry()
Copyright © 2010–2022. All rights reserved.