Interface EventPublication
- All Known Subinterfaces:
TargetEventPublication
- All Known Implementing Classes:
DefaultEventPublication
public interface EventPublication
An event publication.
- Since:
- 1.1
- Author:
- Oliver Drotbohm
-
Method Summary
Modifier and TypeMethodDescriptiondefault intcompareTo(EventPublication that) default ApplicationEventReturns the event as SpringApplicationEvent, effectively wrapping it into aPayloadApplicationEventin case it's not one already.Returns the completion date of the publication.getEvent()Returns the event that is published.Returns a unique identifier for this publication.Returns the time the event is published at.default booleanReturns whether the publication of the event has completed.
-
Method Details
-
getIdentifier
UUID getIdentifier()Returns a unique identifier for this publication.- Returns:
- will never be null.
-
getEvent
Object getEvent()Returns the event that is published.- Returns:
- will never be null.
-
getApplicationEvent
Returns the event as SpringApplicationEvent, effectively wrapping it into aPayloadApplicationEventin case it's not one already.- Returns:
- the underlying event as
ApplicationEvent.
-
getPublicationDate
Instant getPublicationDate()Returns the time the event is published at.- Returns:
- will never be null.
-
getCompletionDate
Returns the completion date of the publication.- Returns:
- will never be null.
-
isPublicationCompleted
default boolean isPublicationCompleted()Returns whether the publication of the event has completed.- Returns:
- will never be null.
-
compareTo
-