Interface CompletedEventPublications
- All Known Implementing Classes:
DefaultEventPublicationRegistry
public interface CompletedEventPublications
All
EventPublication
s that have already been completed.- Since:
- 1.1
- Author:
- Oliver Drotbohm
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deletePublications
(Predicate<EventPublication> filter) Deletes allEventPublication
s matching the givenPredicate
.void
deletePublicationsOlderThan
(Duration duration) Deletes allEventPublication
s whose completion date is older than the givenDuration
.Collection<? extends EventPublication>
findAll()
Returns allEventPublication
s that have already been completed.
-
Method Details
-
findAll
Collection<? extends EventPublication> findAll()Returns allEventPublication
s that have already been completed.- Returns:
- will never be null.
-
deletePublications
Deletes allEventPublication
s matching the givenPredicate
. Note that implementations will iterate all completedEventPublication
s and apply the predicate in memory.- Parameters:
filter
- must not be null.
-
deletePublicationsOlderThan
Deletes allEventPublication
s whose completion date is older than the givenDuration
.- Parameters:
duration
- must not be null.
-