Interface CompletedEventPublications
- All Known Implementing Classes:
DefaultEventPublicationRegistry
public interface CompletedEventPublications
All
EventPublications that have already been completed.- Since:
- 1.1
- Author:
- Oliver Drotbohm
-
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 already been completed.
-
Method Details
-
findAll
Collection<? extends EventPublication> findAll()Returns allEventPublications that have already been completed.- Returns:
- will never be null.
-
deletePublications
Deletes allEventPublications matching the givenPredicate. Note that implementations will iterate all completedEventPublications 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.
-