Interface CompletableEventPublication
- All Superinterfaces:
Comparable<EventPublication>,EventPublication
- All Known Implementing Classes:
DefaultEventPublication
An event publication that can be completed.
- Author:
- Oliver Drotbohm
-
Method Summary
Modifier and TypeMethodDescriptionReturns the completion date of the publication.default booleanReturns whether the publication oMarks the event publication as completed.static CompletableEventPublicationof(Object event, PublicationTargetIdentifier id) Creates aCompletableEventPublicationfor the given event an listener identifier.Methods inherited from interface org.springframework.modulith.events.EventPublication
compareTo, getApplicationEvent, getEvent, getPublicationDate, getTargetIdentifier, isIdentifiedBy
-
Method Details
-
getCompletionDate
Returns the completion date of the publication.- Returns:
- will never be null.
-
isPublicationCompleted
default boolean isPublicationCompleted()Returns whether the publication o- Returns:
-
markCompleted
CompletableEventPublication markCompleted()Marks the event publication as completed.- Returns:
-
of
Creates aCompletableEventPublicationfor the given event an listener identifier.- Parameters:
event- must not be null.id- must not be null.- Returns:
-