Class MongoDbEventPublication
java.lang.Object
org.springframework.modulith.events.mongodb.MongoDbEventPublication
A MongoDB Document to represent event publications.
- Author:
- Dmitry Belyaev, Björn Kieling
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionMongoDbEventPublication(UUID id, Instant publicationDate, String listenerId, Object event) Creates a newMongoDbEventPublicationfor the given publication date, listener id and event.MongoDbEventPublication(UUID id, Instant publicationDate, String listenerId, Object event, Instant completionDate) Creates a newMongoDbEventPublicationfor the given id, publication date, listener id, event and completion date.
- 
Method SummaryModifier and TypeMethodDescription(package private) MongoDbEventPublicationmarkCompleted(Instant instant) Marks the publication as completed at the givenInstant.
- 
Field Details- 
id
- 
publicationDate
- 
listenerId
- 
event
- 
completionDate
 
- 
- 
Constructor Details- 
MongoDbEventPublicationMongoDbEventPublication(UUID id, Instant publicationDate, String listenerId, Object event, @Nullable Instant completionDate) Creates a newMongoDbEventPublicationfor the given id, publication date, listener id, event and completion date.- Parameters:
- id- must not be null.
- publicationDate- must not be null.
- listenerId- must not be null or empty.
- event- must not be null.
- completionDate- can be null.
 
- 
MongoDbEventPublicationCreates a newMongoDbEventPublicationfor the given publication date, listener id and event.- Parameters:
- publicationDate- must not be null.
- listenerId- must not be null.
- event- must not be null.
 
 
- 
- 
Method Details- 
markCompletedMarks the publication as completed at the givenInstant.- Parameters:
- instant- must not be null.
- Returns:
- will never be null.
 
 
-