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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
failEviction(SynchronyEvictionProgress progress)
Indicate an error in the eviction processvoid
failRemovalUnderLock(SynchronyEvictionProgress progress)
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)
SynchronyEvictionProgress
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 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
-
-