Class AnalyticsEvictionProgressTracking
java.lang.Object
com.atlassian.confluence.pages.collab.impl.tracking.AnalyticsEvictionProgressTracking
- All Implemented Interfaces:
SynchronyEvictionProgressTracking
@Internal
public class AnalyticsEvictionProgressTracking
extends Object
implements SynchronyEvictionProgressTracking
Listener of eviction process which pushes events to analytics
- Since:
- 7.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionAnalyticsEvictionProgressTracking(com.atlassian.event.api.EventPublisher eventPublisher) -
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 searchstartEviction(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 removedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.pages.collab.impl.tracking.SynchronyEvictionProgressTracking
startEviction
-
Constructor Details
-
AnalyticsEvictionProgressTracking
public AnalyticsEvictionProgressTracking(com.atlassian.event.api.EventPublisher eventPublisher)
-
-
Method Details
-
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
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
Description copied from interface:SynchronyEvictionProgressTrackingSuccessfully finish the search- Specified by:
finishSearchin interfaceSynchronyEvictionProgressTracking
-
failSearch
Description copied from interface:SynchronyEvictionProgressTrackingIndicate an error in the searching process- Specified by:
failSearchin interfaceSynchronyEvictionProgressTracking
-
startRemovalUnderLock
Description copied from interface:SynchronyEvictionProgressTrackingGets called when DB rows are being removed while corresponding synchrony data is locked- Specified by:
startRemovalUnderLockin interfaceSynchronyEvictionProgressTracking
-
finishRemovalUnderLock
Description copied from interface:SynchronyEvictionProgressTrackingRemoval procedure has been finished and the lock has been removed- Specified by:
finishRemovalUnderLockin interfaceSynchronyEvictionProgressTracking
-
failRemovalUnderLock
Description copied from interface:SynchronyEvictionProgressTrackingThere was an error in locking process. Lock has been removed- Specified by:
failRemovalUnderLockin interfaceSynchronyEvictionProgressTracking
-