Interface SynchronyEvictionProgressTracking
- All Known Implementing Classes:
AnalyticsEvictionProgressTracking
,CompositeEvictionProgressTracking
@Internal
public interface SynchronyEvictionProgressTracking
The component that is being called back during the eviction.
It is responsible for recording what happened and logging/pushing to analytics, etc.
- Since:
- 7.0.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
failEviction
(SynchronyEvictionProgress progress) Indicate an error in the eviction processvoid
There was an error in locking process.void
failSearch
(SynchronyEvictionProgress progress) Indicate an error in the searching processvoid
finishEviction
(SynchronyEvictionProgress progress, int contentsRemoved, int rowsRemoved) Successfully finish eviction processvoid
finishRemovalUnderLock
(SynchronyEvictionProgress progress, Integer numberOfRowsRemoved) Removal procedure has been finished and the lock has been removedvoid
finishSearch
(SynchronyEvictionProgress progress, Integer numberOfContent) Successfully finish the searchdefault SynchronyEvictionProgress
startEviction
(SynchronyEvictionType type, Integer thresholdHours) startEviction
(SynchronyEvictionType type, Integer thresholdHours, Integer limit) Gets called before starting the whole eviction procedurevoid
startRemovalUnderLock
(SynchronyEvictionProgress progress, Integer numberOfContent) Gets called when DB rows are being removed while corresponding synchrony data is lockedvoid
startSearch
(SynchronyEvictionProgress progress, SynchronyEvictionSearchType type, Integer limit) Start searching for content to be removed
-
Method Details
-
startEviction
SynchronyEvictionProgress startEviction(SynchronyEvictionType type, Integer thresholdHours, Integer limit) Gets called before starting the whole eviction procedure -
startEviction
-
finishEviction
Successfully finish eviction process -
failEviction
Indicate an error in the eviction process -
startSearch
void startSearch(SynchronyEvictionProgress progress, SynchronyEvictionSearchType type, Integer limit) Start searching for content to be removed -
finishSearch
Successfully finish the search -
failSearch
Indicate an error in the searching process -
startRemovalUnderLock
Gets called when DB rows are being removed while corresponding synchrony data is locked -
finishRemovalUnderLock
Removal procedure has been finished and the lock has been removed -
failRemovalUnderLock
There was an error in locking process. Lock has been removed
-