Class EventPublicationRepository.FailedCriteria
java.lang.Object
org.springframework.modulith.events.core.EventPublicationRepository.FailedCriteria
- Enclosing interface:
- EventPublicationRepository
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionlongThe number ofEventPublications to read.@Nullable InstantThe reference date to use as cutoff when selecting failedEventPublications, i.e. only older publications will be selected.withItemsToRead(long itemsToRead) withPublicationsPublishedBefore(Instant reference)
-
Field Details
-
ALL
-
-
Method Details
-
getPublicationDateReference
The reference date to use as cutoff when selecting failedEventPublications, i.e. only older publications will be selected.- Returns:
- can be null.
-
withPublicationsPublishedBefore
-
getMaxItemsToRead
public long getMaxItemsToRead()The number ofEventPublications to read.-1reads all matching items (no limit); positive values cap how many rows are read. A limit of0is not supported — callers that have nothing to read should not invokeEventPublicationRepository.findFailedPublications(FailedCriteria).- Returns:
-1or a positive value
-
withItemsToRead
- Parameters:
itemsToRead--1for no limit, or a positive value
-