Class SnapshotEventEntry
java.lang.Object
org.axonframework.eventhandling.AbstractEventEntry<byte[]>
org.axonframework.eventsourcing.eventstore.AbstractSnapshotEventEntry<byte[]>
org.axonframework.eventsourcing.eventstore.jpa.SnapshotEventEntry
- All Implemented Interfaces:
DomainEventData<byte[]>,EventData<byte[]>
Default implementation of an event entry containing a serialized snapshot of an aggregate. This implementation is
used by the
JpaEventStorageEngine to store snapshot events. Event payload and metadata are serialized to a
byte array.- Author:
- Rene de Waele
-
Nested Class Summary
Nested classes/interfaces inherited from class org.axonframework.eventsourcing.eventstore.AbstractSnapshotEventEntry
AbstractSnapshotEventEntry.PK -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor required by JPASnapshotEventEntry(DomainEventMessage<?> eventMessage, Serializer serializer) Construct a new default snapshot event entry from an aggregate. -
Method Summary
Methods inherited from class org.axonframework.eventsourcing.eventstore.AbstractSnapshotEventEntry
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.EventData
getEventIdentifier, getMetaData, getPayload, getTimestamp
-
Constructor Details
-
SnapshotEventEntry
Construct a new default snapshot event entry from an aggregate. The snapshot 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 snapshot event message to convert to a serialized event entryserializer- The serializer to convert the snapshot event
-
SnapshotEventEntry
protected SnapshotEventEntry()Default constructor required by JPA
-