|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.axonframework.eventstore.jpa.SimpleSerializedDomainEventData<T>
T
- The data type expected for the serialized objectspublic class SimpleSerializedDomainEventData<T>
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,
SerializedObject<T> serializedPayload,
SerializedObject<T> serializedMetaData)
Initialize an instance using given properties. |
|
SimpleSerializedDomainEventData(String eventIdentifier,
String aggregateIdentifier,
long sequenceNumber,
Object timestamp,
String payloadType,
String payloadRevision,
T payload,
T 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<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 SimpleSerializedDomainEventData(String eventIdentifier, String aggregateIdentifier, long sequenceNumber, Object timestamp, String payloadType, String payloadRevision, T payload, T 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 datapublic SimpleSerializedDomainEventData(String eventIdentifier, String aggregateIdentifier, long sequenceNumber, Object timestamp, SerializedObject<T> serializedPayload, SerializedObject<T> serializedMetaData)
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)
)serializedPayload
- The serialized representation of the eventserializedMetaData
- The serialized representation of the meta dataMethod 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 |