Uses of Class
org.springframework.modulith.events.core.PublicationTargetIdentifier
Packages that use PublicationTargetIdentifier
Package
Description
The event publication registry abstraction.
JDBC integration for
EventPublicationRepository
.JPA integration for
EventPublicationRepository
.MongoDB integration for
EventPublicationRepository
.-
Uses of PublicationTargetIdentifier in org.springframework.modulith.events.core
Methods in org.springframework.modulith.events.core that return PublicationTargetIdentifierModifier and TypeMethodDescriptionDefaultEventPublication.getTargetIdentifier()
EventPublication.getTargetIdentifier()
Returns the identifier of the target that the event is supposed to be published to.static PublicationTargetIdentifier
Returns thePublicationTargetIdentifier
for the given value.Methods in org.springframework.modulith.events.core with parameters of type PublicationTargetIdentifierModifier and TypeMethodDescriptionEventPublicationRepository.findIncompletePublicationsByEventAndTargetIdentifier
(Object event, PublicationTargetIdentifier targetIdentifier) Return the incompleteEventPublication
for the given serialized event and listener identifier.default boolean
EventPublication.isIdentifiedBy
(PublicationTargetIdentifier identifier) Returns whether the publication is identified by the givenPublicationTargetIdentifier
.void
DefaultEventPublicationRegistry.markCompleted
(Object event, PublicationTargetIdentifier targetIdentifier) void
EventPublicationRegistry.markCompleted
(Object event, PublicationTargetIdentifier targetIdentifier) Marks the publication for the given event andPublicationTargetIdentifier
as completed.void
EventPublicationRepository.markCompleted
(Object event, PublicationTargetIdentifier identifier, Instant completionDate) Marks the publication for the given event andPublicationTargetIdentifier
to be completed at the givenInstant
.static EventPublication
EventPublication.of
(Object event, PublicationTargetIdentifier id) Creates aEventPublication
for the given event an listener identifier using a defaultInstant
.static EventPublication
EventPublication.of
(Object event, PublicationTargetIdentifier id, Instant publicationDate) Creates aEventPublication
for the given event an listener identifier and publication date.Method parameters in org.springframework.modulith.events.core with type arguments of type PublicationTargetIdentifierModifier and TypeMethodDescriptionDefaultEventPublicationRegistry.store
(Object event, Stream<PublicationTargetIdentifier> listeners) EventPublicationRegistry.store
(Object event, Stream<PublicationTargetIdentifier> listeners) StoresEventPublication
s for the given event andApplicationListener
s.Constructors in org.springframework.modulith.events.core with parameters of type PublicationTargetIdentifierModifierConstructorDescription(package private)
DefaultEventPublication
(Object event, PublicationTargetIdentifier targetIdentifier, Instant publicationDate) Creates a newDefaultEventPublication
for the given event andPublicationTargetIdentifier
. -
Uses of PublicationTargetIdentifier in org.springframework.modulith.events.jdbc
Methods in org.springframework.modulith.events.jdbc with parameters of type PublicationTargetIdentifierModifier and TypeMethodDescriptionJdbcEventPublicationRepository.findIncompletePublicationsByEventAndTargetIdentifier
(Object event, PublicationTargetIdentifier targetIdentifier) void
JdbcEventPublicationRepository.markCompleted
(Object event, PublicationTargetIdentifier identifier, Instant completionDate) -
Uses of PublicationTargetIdentifier in org.springframework.modulith.events.jpa
Methods in org.springframework.modulith.events.jpa with parameters of type PublicationTargetIdentifierModifier and TypeMethodDescriptionJpaEventPublicationRepository.findIncompletePublicationsByEventAndTargetIdentifier
(Object event, PublicationTargetIdentifier targetIdentifier) void
JpaEventPublicationRepository.markCompleted
(Object event, PublicationTargetIdentifier identifier, Instant completionDate) -
Uses of PublicationTargetIdentifier in org.springframework.modulith.events.mongodb
Methods in org.springframework.modulith.events.mongodb with parameters of type PublicationTargetIdentifierModifier and TypeMethodDescriptionMongoDbEventPublicationRepository.findIncompletePublicationsByEventAndTargetIdentifier
(Object event, PublicationTargetIdentifier targetIdentifier) void
MongoDbEventPublicationRepository.markCompleted
(Object event, PublicationTargetIdentifier identifier, Instant completionDate)