Package fr.maif.eventsourcing
Class EventEnvelope.Builder<E extends Event,Meta,Context>
java.lang.Object
fr.maif.eventsourcing.EventEnvelope.Builder<E,Meta,Context>
- Enclosing class:
- EventEnvelope<E extends Event,
Meta, Context>
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()withContext(Context context) withEmissionDate(LocalDateTime emissionDate) withEntityId(String entityId) withEventType(String eventType) withMetadata(Meta metadata) withNumMessageInTransaction(Integer numMessageInTransaction) withPublished(Boolean published) withSequenceNum(Long sequenceNum) withSystemId(String systemId) withTotalMessageInTransaction(Integer totalMessageInTransaction) withTransactionId(String transactionId) withUserId(String userId) withVersion(Long version)
-
Field Details
-
id
-
sequenceNum
-
eventType
-
emissionDate
-
transactionId
-
metadata
-
event
-
context
-
version
-
published
-
entityId
-
userId
-
systemId
-
totalMessageInTransaction
-
numMessageInTransaction
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withId
-
withSequenceNum
-
withEventType
-
withEmissionDate
-
withTransactionId
-
withMetadata
-
withEvent
-
withContext
-
withVersion
-
withPublished
-
withEntityId
-
withUserId
-
withSystemId
-
withTotalMessageInTransaction
public EventEnvelope.Builder<E,Meta, withTotalMessageInTransactionContext> (Integer totalMessageInTransaction) -
withNumMessageInTransaction
public EventEnvelope.Builder<E,Meta, withNumMessageInTransactionContext> (Integer numMessageInTransaction) -
build
-