Class CompositeEvictionProgressTracking
- java.lang.Object
-
- com.atlassian.confluence.pages.collab.impl.tracking.CompositeEvictionProgressTracking
-
- All Implemented Interfaces:
SynchronyEvictionProgressTracking
@Internal public class CompositeEvictionProgressTracking extends Object implements SynchronyEvictionProgressTracking
Combines several trackers into one- Since:
- 7.0.0
-
-
Constructor Summary
Constructors Constructor Description CompositeEvictionProgressTracking(List<SynchronyEvictionProgressTracking> trackers)
-
Method Summary
All Methods Instance Methods Concrete 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 searchSynchronyEvictionProgressstartEviction(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-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.pages.collab.impl.tracking.SynchronyEvictionProgressTracking
startEviction
-
-
-
-
Constructor Detail
-
CompositeEvictionProgressTracking
public CompositeEvictionProgressTracking(List<SynchronyEvictionProgressTracking> trackers)
-
-
Method Detail
-
startEviction
public SynchronyEvictionProgress startEviction(SynchronyEvictionType type, Integer thresholdHours, Integer limit)
Description copied from interface:SynchronyEvictionProgressTrackingGets called before starting the whole eviction procedure- Specified by:
startEvictionin interfaceSynchronyEvictionProgressTracking
-
finishEviction
public void finishEviction(SynchronyEvictionProgress progress, int contentsRemoved, int rowsRemoved)
Description copied from interface:SynchronyEvictionProgressTrackingSuccessfully finish eviction process- Specified by:
finishEvictionin interfaceSynchronyEvictionProgressTracking
-
failEviction
public void failEviction(SynchronyEvictionProgress progress)
Description copied from interface:SynchronyEvictionProgressTrackingIndicate an error in the eviction process- Specified by:
failEvictionin interfaceSynchronyEvictionProgressTracking
-
startSearch
public void startSearch(SynchronyEvictionProgress progress, SynchronyEvictionSearchType type, Integer limit)
Description copied from interface:SynchronyEvictionProgressTrackingStart searching for content to be removed- Specified by:
startSearchin interfaceSynchronyEvictionProgressTracking
-
finishSearch
public void finishSearch(SynchronyEvictionProgress progress, Integer numberOfContent)
Description copied from interface:SynchronyEvictionProgressTrackingSuccessfully finish the search- Specified by:
finishSearchin interfaceSynchronyEvictionProgressTracking
-
failSearch
public void failSearch(SynchronyEvictionProgress progress)
Description copied from interface:SynchronyEvictionProgressTrackingIndicate an error in the searching process- Specified by:
failSearchin interfaceSynchronyEvictionProgressTracking
-
startRemovalUnderLock
public void startRemovalUnderLock(SynchronyEvictionProgress progress, Integer numberOfContent)
Description copied from interface:SynchronyEvictionProgressTrackingGets called when DB rows are being removed while corresponding synchrony data is locked- Specified by:
startRemovalUnderLockin interfaceSynchronyEvictionProgressTracking
-
finishRemovalUnderLock
public void finishRemovalUnderLock(SynchronyEvictionProgress progress, Integer numberOfRowsRemoved)
Description copied from interface:SynchronyEvictionProgressTrackingRemoval procedure has been finished and the lock has been removed- Specified by:
finishRemovalUnderLockin interfaceSynchronyEvictionProgressTracking
-
failRemovalUnderLock
public void failRemovalUnderLock(SynchronyEvictionProgress progress)
Description copied from interface:SynchronyEvictionProgressTrackingThere was an error in locking process. Lock has been removed- Specified by:
failRemovalUnderLockin interfaceSynchronyEvictionProgressTracking
-
-