@Internal public class AnalyticsEvictionProgressTracking extends Object implements SynchronyEvictionProgressTracking
Constructor and Description |
---|
AnalyticsEvictionProgressTracking(com.atlassian.event.api.EventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
void |
failEviction(SynchronyEvictionProgress progress)
Indicate an error in the eviction process
|
void |
failRemovalUnderLock(SynchronyEvictionProgress progress)
There was an error in locking process.
|
void |
failSearch(SynchronyEvictionProgress progress)
Indicate an error in the searching process
|
void |
finishEviction(SynchronyEvictionProgress progress,
int contentsRemoved,
int rowsRemoved)
Successfully finish eviction process
|
void |
finishRemovalUnderLock(SynchronyEvictionProgress progress,
Integer numberOfRowsRemoved)
Removal procedure has been finished and the lock has been removed
|
void |
finishSearch(SynchronyEvictionProgress progress,
Integer numberOfContent)
Successfully finish the search
|
SynchronyEvictionProgress |
startEviction(SynchronyEvictionType type,
Integer thresholdHours,
Integer limit)
Gets called before starting the whole eviction procedure
|
void |
startRemovalUnderLock(SynchronyEvictionProgress progress,
Integer numberOfContent)
Gets called when DB rows are being removed while corresponding synchrony data is locked
|
void |
startSearch(SynchronyEvictionProgress progress,
SynchronyEvictionSearchType type,
Integer limit)
Start searching for content to be removed
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
startEviction
public AnalyticsEvictionProgressTracking(com.atlassian.event.api.EventPublisher eventPublisher)
public SynchronyEvictionProgress startEviction(SynchronyEvictionType type, Integer thresholdHours, Integer limit)
SynchronyEvictionProgressTracking
startEviction
in interface SynchronyEvictionProgressTracking
public void finishEviction(SynchronyEvictionProgress progress, int contentsRemoved, int rowsRemoved)
SynchronyEvictionProgressTracking
finishEviction
in interface SynchronyEvictionProgressTracking
public void failEviction(SynchronyEvictionProgress progress)
SynchronyEvictionProgressTracking
failEviction
in interface SynchronyEvictionProgressTracking
public void startSearch(SynchronyEvictionProgress progress, SynchronyEvictionSearchType type, Integer limit)
SynchronyEvictionProgressTracking
startSearch
in interface SynchronyEvictionProgressTracking
public void finishSearch(SynchronyEvictionProgress progress, Integer numberOfContent)
SynchronyEvictionProgressTracking
finishSearch
in interface SynchronyEvictionProgressTracking
public void failSearch(SynchronyEvictionProgress progress)
SynchronyEvictionProgressTracking
failSearch
in interface SynchronyEvictionProgressTracking
public void startRemovalUnderLock(SynchronyEvictionProgress progress, Integer numberOfContent)
SynchronyEvictionProgressTracking
startRemovalUnderLock
in interface SynchronyEvictionProgressTracking
public void finishRemovalUnderLock(SynchronyEvictionProgress progress, Integer numberOfRowsRemoved)
SynchronyEvictionProgressTracking
finishRemovalUnderLock
in interface SynchronyEvictionProgressTracking
public void failRemovalUnderLock(SynchronyEvictionProgress progress)
SynchronyEvictionProgressTracking
failRemovalUnderLock
in interface SynchronyEvictionProgressTracking
Copyright © 2003–2020 Atlassian. All rights reserved.