org.axonframework.serializer
Interface SerializedDomainEventData<T>

Type Parameters:
T - The content type of the serialized data
All Known Implementing Classes:
AbstractEventEntry, AbstractEventEntryData, DomainEventEntry, EventEntry, SimpleSerializedDomainEventData, SnapshotEventEntry, UpcastSerializedDomainEventData

public interface SerializedDomainEventData<T>

Interface describing the properties of serialized Domain Event Messages. Event Store implementations should have their storage entries implement this interface.

Since:
2.0
Author:
Allard Buijze
See Also:
UpcastSerializedDomainEventData

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.
 

Method Detail

getEventIdentifier

String getEventIdentifier()
Returns the identifier of the serialized event.

Returns:
the identifier of the serialized event

getAggregateIdentifier

Object getAggregateIdentifier()
Returns the Identifier of the Aggregate to which the Event was applied.

Returns:
the Identifier of the Aggregate to which the Event was applied

getSequenceNumber

long getSequenceNumber()
Returns the sequence number of the event in the aggregate.

Returns:
the sequence number of the event in the aggregate

getTimestamp

org.joda.time.DateTime getTimestamp()
Returns the timestamp at which the event was first created.

Returns:
the timestamp at which the event was first created

getMetaData

SerializedObject<T> getMetaData()
Returns the serialized data of the MetaData of the serialized Event.

Returns:
the serialized data of the MetaData of the serialized Event

getPayload

SerializedObject<T> getPayload()
Returns the serialized data of the Event Message's payload.

Returns:
the serialized data of the Event Message's payload


Copyright © 2010-2016. All Rights Reserved.