Uses of Interface
org.springframework.modulith.events.core.TargetEventPublication
Package
Description
The event publication registry abstraction.
JDBC integration for
EventPublicationRepository
.JPA integration for
EventPublicationRepository
.MongoDB integration for
EventPublicationRepository
.-
Uses of TargetEventPublication in org.springframework.modulith.events.core
Modifier and TypeMethodDescriptionEventPublicationRepository.create
(TargetEventPublication publication) Persists the givenTargetEventPublication
.static TargetEventPublication
TargetEventPublication.of
(Object event, PublicationTargetIdentifier id) Creates aTargetEventPublication
for the given event an listener identifier using a defaultInstant
.static TargetEventPublication
TargetEventPublication.of
(Object event, PublicationTargetIdentifier id, Instant publicationDate) Creates aTargetEventPublication
for the given event an listener identifier and publication date.Modifier and TypeMethodDescriptionCollection<? extends TargetEventPublication>
DefaultEventPublicationRegistry.findAll()
DefaultEventPublicationRegistry.findIncompletePublications()
EventPublicationRegistry.findIncompletePublications()
Returns allTargetEventPublication
s that have not been completed yet.EventPublicationRepository.findIncompletePublications()
Returns allTargetEventPublication
s that have not been completed yet.EventPublicationRepository.findIncompletePublicationsByEventAndTargetIdentifier
(Object event, PublicationTargetIdentifier targetIdentifier) Return the incompleteTargetEventPublication
for the given serialized event and listener identifier.DefaultEventPublicationRegistry.findIncompletePublicationsOlderThan
(Duration duration) EventPublicationRegistry.findIncompletePublicationsOlderThan
(Duration duration) Returns allTargetEventPublication
s that have not been completed yet and have been published before the given duration in relation to "now".EventPublicationRepository.findIncompletePublicationsPublishedBefore
(Instant instant) Returns allTargetEventPublication
s that have not been completed and were published before the givenInstant
.DefaultEventPublicationRegistry.store
(Object event, Stream<PublicationTargetIdentifier> listeners) EventPublicationRegistry.store
(Object event, Stream<PublicationTargetIdentifier> listeners) StoresTargetEventPublication
s for the given event andApplicationListener
s.Modifier and TypeMethodDescriptionEventPublicationRepository.create
(TargetEventPublication publication) Persists the givenTargetEventPublication
.default void
EventPublicationRepository.markCompleted
(TargetEventPublication publication, Instant completionDate) Marks the givenTargetEventPublication
as completed. -
Uses of TargetEventPublication in org.springframework.modulith.events.jdbc
Modifier and TypeMethodDescriptionJdbcEventPublicationRepository.create
(TargetEventPublication publication) Modifier and TypeMethodDescriptionJdbcEventPublicationRepository.findIncompletePublications()
JdbcEventPublicationRepository.findIncompletePublicationsByEventAndTargetIdentifier
(Object event, PublicationTargetIdentifier targetIdentifier) JdbcEventPublicationRepository.findIncompletePublicationsPublishedBefore
(Instant instant) Modifier and TypeMethodDescriptionJdbcEventPublicationRepository.create
(TargetEventPublication publication) -
Uses of TargetEventPublication in org.springframework.modulith.events.jpa
Modifier and TypeMethodDescriptionJpaEventPublicationRepository.create
(TargetEventPublication publication) Modifier and TypeMethodDescriptionJpaEventPublicationRepository.findIncompletePublications()
JpaEventPublicationRepository.findIncompletePublicationsByEventAndTargetIdentifier
(Object event, PublicationTargetIdentifier targetIdentifier) JpaEventPublicationRepository.findIncompletePublicationsPublishedBefore
(Instant instant) Modifier and TypeMethodDescriptionJpaEventPublicationRepository.create
(TargetEventPublication publication) -
Uses of TargetEventPublication in org.springframework.modulith.events.mongodb
Modifier and TypeMethodDescriptionMongoDbEventPublicationRepository.create
(TargetEventPublication publication) Modifier and TypeMethodDescriptionMongoDbEventPublicationRepository.findIncompletePublications()
MongoDbEventPublicationRepository.findIncompletePublicationsByEventAndTargetIdentifier
(Object event, PublicationTargetIdentifier targetIdentifier) MongoDbEventPublicationRepository.findIncompletePublicationsPublishedBefore
(Instant instant) Modifier and TypeMethodDescriptionMongoDbEventPublicationRepository.create
(TargetEventPublication publication)