|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.axonframework.upcasting.UpcastSerializedDomainEventData<T>
T
- The data type representing the serialized objectpublic class UpcastSerializedDomainEventData<T>
SerializedDomainEventData implementation that can be used to duplicate existing SerializedDomainEventData instances after upcasting a payload.
Constructor Summary | |
---|---|
UpcastSerializedDomainEventData(SerializedDomainEventData<T> original,
Object aggregateIdentifier,
SerializedObject<T> upcastPayload)
Reconstruct the given original SerializedDomainEventData replacing the aggregateIdentifier with
given aggregateIdentifier and payload with upcastPayload . |
Method Summary | |
---|---|
Object |
getAggregateIdentifier()
Returns the Identifier of the Aggregate to which the Event was applied. |
String |
getEventIdentifier()
Returns the identifier of the serialized event. |
SerializedObject<T> |
getMetaData()
Returns the serialized data of the MetaData of the serialized Event. |
SerializedObject<T> |
getPayload()
Returns the serialized data of the Event Message's payload. |
long |
getSequenceNumber()
Returns the sequence number of the event in the aggregate. |
org.joda.time.DateTime |
getTimestamp()
Returns the timestamp at which the event was first created. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UpcastSerializedDomainEventData(SerializedDomainEventData<T> original, Object aggregateIdentifier, SerializedObject<T> upcastPayload)
original
SerializedDomainEventData replacing the aggregateIdentifier with
given aggregateIdentifier
and payload with upcastPayload
. Typically, for each payload
instance returned after an upcast, a single UpcastSerializedDomainEventData instance is to be created.
original
- The original SerializedDomainEventData instanceaggregateIdentifier
- The aggregate identifier instanceupcastPayload
- The replacement payloadMethod Detail |
---|
public String getEventIdentifier()
SerializedDomainEventData
getEventIdentifier
in interface SerializedDomainEventData<T>
public Object getAggregateIdentifier()
SerializedDomainEventData
getAggregateIdentifier
in interface SerializedDomainEventData<T>
public long getSequenceNumber()
SerializedDomainEventData
getSequenceNumber
in interface SerializedDomainEventData<T>
public org.joda.time.DateTime getTimestamp()
SerializedDomainEventData
getTimestamp
in interface SerializedDomainEventData<T>
public SerializedObject<T> getMetaData()
SerializedDomainEventData
getMetaData
in interface SerializedDomainEventData<T>
public SerializedObject<T> getPayload()
SerializedDomainEventData
getPayload
in interface SerializedDomainEventData<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |