Interface AbandonedEventPublications
- All Known Implementing Classes:
DefaultAbandonedEventPublications
public interface AbandonedEventPublications
All
EventPublications that have been abandoned, i.e. given up on after exhausting an application-defined
resubmission policy.- Since:
- 2.2
- Author:
- Oliver Drotbohm
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeletePublications(Predicate<EventPublication> filter) Deletes allEventPublications matching the givenPredicate.voiddeletePublicationsOlderThan(Duration duration) Deletes allEventPublications whose completion date is older than the givenDuration.Collection<? extends EventPublication>findAll()Returns allEventPublications that have been abandoned.
-
Method Details
-
findAll
Collection<? extends EventPublication> findAll()Returns allEventPublications that have been abandoned.- Returns:
- will never be null.
-
deletePublications
Deletes allEventPublications matching the givenPredicate. Note that implementations will iterate all abandonedEventPublications and apply the predicate in memory.- Parameters:
filter- must not be null.
-
deletePublicationsOlderThan
Deletes allEventPublications whose completion date is older than the givenDuration.- Parameters:
duration- must not be null.
-