Interface StandaloneCleanupRepository
public interface StandaloneCleanupRepository
Represents a repository that is capable of specialized record pruning operations
- 
Method Summary
Modifier and TypeMethodDescriptionvoidpruneRestingNotificationStates(Duration beforeNow) Performs an update on all records to prune allNotificationStatesfromNotificationStateAware.getNotificationStates()which satisfy the following criteria:NotificationState.isAcked()istrueorNotificationState.isStopped()istrueNotificationState.getChangeTimestamp()is beforeInstant.now()minus thebeforeNowduration 
- 
Method Details
- 
pruneRestingNotificationStates
Performs an update on all records to prune allNotificationStatesfromNotificationStateAware.getNotificationStates()which satisfy the following criteria:NotificationState.isAcked()istrueorNotificationState.isStopped()istrueNotificationState.getChangeTimestamp()is beforeInstant.now()minus thebeforeNowduration
- Parameters:
 beforeNow-NotificationStateswhosetimestampsare older than the current time minus this duration will be pruned
 
 -