Class SnapshotEventMessage
java.lang.Object
org.axonframework.messaging.core.MessageDecorator
org.axonframework.messaging.eventhandling.GenericEventMessage
org.axonframework.eventsourcing.eventstore.SnapshotEventMessage
- All Implemented Interfaces:
Message,EventMessage
Message containing a snapshot.
This message can be emitted when calling EventStoreTransaction.source(SourcingCondition)
when using the snapshot sourcing strategy and a suitable snapshot
was available.
- Since:
- 5.1.0
- Author:
- John Hendrikx
-
Field Summary
Fields inherited from class org.axonframework.messaging.eventhandling.GenericEventMessage
clockFields inherited from interface org.axonframework.messaging.core.Message
RESOURCE_KEY -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.axonframework.messaging.eventhandling.GenericEventMessage
andMetadata, describeTo, describeType, timestamp, withConvertedPayload, withConverter, withMetadataMethods inherited from class org.axonframework.messaging.core.MessageDecorator
delegate, identifier, metadata, payloadAs, payloadAs, payloadType, toString, typeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.axonframework.messaging.eventhandling.EventMessage
identifier, withConvertedPayload, withConvertedPayload
-
Constructor Details
-
SnapshotEventMessage
Constructs a new instance.- Parameters:
snapshot- the snapshot, cannot benull- Throws:
NullPointerException- when any argument isnull
-
-
Method Details
-
payload
Description copied from interface:MessageReturns the payload of thisMessage.The payload is the application-specific information.
- Specified by:
payloadin interfaceMessage- Overrides:
payloadin classMessageDecorator- Returns:
- The payload of this
Message.
-