Interface StandaloneCleanupRepository
public interface StandaloneCleanupRepository
Represents a repository that is capable of specialized record pruning operations
-
Method Summary
Modifier and TypeMethodDescriptionvoid
pruneRestingNotificationStates
(Duration beforeNow) Performs an update on all records to prune allNotificationStates
fromNotificationStateAware.getNotificationStates()
which satisfy the following criteria:NotificationState.isAcked()
istrue
orNotificationState.isStopped()
istrue
NotificationState.getChangeTimestamp()
is beforeInstant.now()
minus thebeforeNow
duration
-
Method Details
-
pruneRestingNotificationStates
Performs an update on all records to prune allNotificationStates
fromNotificationStateAware.getNotificationStates()
which satisfy the following criteria:NotificationState.isAcked()
istrue
orNotificationState.isStopped()
istrue
NotificationState.getChangeTimestamp()
is beforeInstant.now()
minus thebeforeNow
duration
- Parameters:
beforeNow
-NotificationStates
whosetimestamps
are older than the current time minus this duration will be pruned
-