|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axonframework.eventstore.jpa.SimpleSerializedDomainEventData
public class SimpleSerializedDomainEventData
Simple implementation of the SerializedDomainEventData class, used to reduce memory consumptions by queries
accessing Event Entries. Querying from them directly will cause the EntityManager to keep a reference to them,
preventing them from being garbage collected.
| Constructor Summary | |
|---|---|
SimpleSerializedDomainEventData(String eventIdentifier,
String aggregateIdentifier,
long sequenceNumber,
Object timestamp,
String payloadType,
String payloadRevision,
byte[] payload,
byte[] metaData)
Initialize an instance using given properties. |
|
| 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 |
getMetaData()
Returns the serialized data of the MetaData of the serialized Event. |
SerializedObject |
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 SimpleSerializedDomainEventData(String eventIdentifier,
String aggregateIdentifier,
long sequenceNumber,
Object timestamp,
String payloadType,
String payloadRevision,
byte[] payload,
byte[] metaData)
timestamp must be in a format supported by DateTime#DateTime(Object)}.
eventIdentifier - The identifier of the eventaggregateIdentifier - The identifier of the aggregatesequenceNumber - The sequence number of the eventtimestamp - The timestamp of the event (format must be supported by DateTime.DateTime(Object))payloadType - The type identifier of the serialized payloadpayloadRevision - The revision of the serialized payloadpayload - The serialized representation of the eventmetaData - The serialized representation of the meta data| Method Detail |
|---|
public String getEventIdentifier()
SerializedDomainEventData
getEventIdentifier in interface SerializedDomainEventDatapublic Object getAggregateIdentifier()
SerializedDomainEventData
getAggregateIdentifier in interface SerializedDomainEventDatapublic long getSequenceNumber()
SerializedDomainEventData
getSequenceNumber in interface SerializedDomainEventDatapublic org.joda.time.DateTime getTimestamp()
SerializedDomainEventData
getTimestamp in interface SerializedDomainEventDatapublic SerializedObject getMetaData()
SerializedDomainEventData
getMetaData in interface SerializedDomainEventDatapublic SerializedObject getPayload()
SerializedDomainEventData
getPayload in interface SerializedDomainEventData
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||