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 TypeMethodDescriptionvoidfailEviction(SynchronyEvictionProgress progress) Indicate an error in the eviction processvoidThere 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) startEviction(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 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
-