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 boolean
Returns whether the publication oMarks the event publication as completed.static CompletableEventPublication
of
(Object event, PublicationTargetIdentifier id) Creates aCompletableEventPublication
for 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 aCompletableEventPublication
for the given event an listener identifier.- Parameters:
event
- must not be null.id
- must not be null.- Returns:
-