Interface SynchronyEvictionProgressTracking
-
- All Known Implementing Classes:
AnalyticsEvictionProgressTracking,CompositeEvictionProgressTracking
@Internal public interface SynchronyEvictionProgressTrackingThe 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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidfailEviction(SynchronyEvictionProgress progress)Indicate an error in the eviction processvoidfailRemovalUnderLock(SynchronyEvictionProgress progress)There was an error in locking process.voidfailSearch(SynchronyEvictionProgress progress)Indicate an error in the searching processvoidfinishEviction(SynchronyEvictionProgress progress, int contentsRemoved, int rowsRemoved)Successfully finish eviction processvoidfinishRemovalUnderLock(SynchronyEvictionProgress progress, Integer numberOfRowsRemoved)Removal procedure has been finished and the lock has been removedvoidfinishSearch(SynchronyEvictionProgress progress, Integer numberOfContent)Successfully finish the searchdefault SynchronyEvictionProgressstartEviction(SynchronyEvictionType type, Integer thresholdHours)SynchronyEvictionProgressstartEviction(SynchronyEvictionType type, Integer thresholdHours, Integer limit)Gets called before starting the whole eviction procedurevoidstartRemovalUnderLock(SynchronyEvictionProgress progress, Integer numberOfContent)Gets called when DB rows are being removed while corresponding synchrony data is lockedvoidstartSearch(SynchronyEvictionProgress progress, SynchronyEvictionSearchType type, Integer limit)Start searching for content to be removed
-
-
-
Method Detail
-
startEviction
SynchronyEvictionProgress startEviction(SynchronyEvictionType type, Integer thresholdHours, Integer limit)
Gets called before starting the whole eviction procedure
-
startEviction
default SynchronyEvictionProgress startEviction(SynchronyEvictionType type, Integer thresholdHours)
-
finishEviction
void finishEviction(SynchronyEvictionProgress progress, int contentsRemoved, int rowsRemoved)
Successfully finish eviction process
-
failEviction
void failEviction(SynchronyEvictionProgress progress)
Indicate an error in the eviction process
-
startSearch
void startSearch(SynchronyEvictionProgress progress, SynchronyEvictionSearchType type, Integer limit)
Start searching for content to be removed
-
finishSearch
void finishSearch(SynchronyEvictionProgress progress, Integer numberOfContent)
Successfully finish the search
-
failSearch
void failSearch(SynchronyEvictionProgress progress)
Indicate an error in the searching process
-
startRemovalUnderLock
void startRemovalUnderLock(SynchronyEvictionProgress progress, Integer numberOfContent)
Gets called when DB rows are being removed while corresponding synchrony data is locked
-
finishRemovalUnderLock
void finishRemovalUnderLock(SynchronyEvictionProgress progress, Integer numberOfRowsRemoved)
Removal procedure has been finished and the lock has been removed
-
failRemovalUnderLock
void failRemovalUnderLock(SynchronyEvictionProgress progress)
There was an error in locking process. Lock has been removed
-
-