Class DeletionResult
java.lang.Object
com.atlassian.confluence.impl.space.deletion.backgrounddeletion.erasers.DeletionResult
Data deletion result. Contains info about number of deleted records plus the status (finished or not).
"Finished" state is important. As we delete data in chunks and take the deadline into account,
some expected data won't be deleted, so we will have to repeat the same operation again next time.
For example, if we want to remove 100K child pages, but only 50K were removed in the current iteration,
flag "finished" will be set to "false". So next time, the remaining objects will be removed and the flag will
be set to "true".
- Since:
- 9.1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanstatic final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic DeletionResultstatic DeletionResultfinishedResults(int numberOfObjects) intinthashCode()booleanmerge(DeletionResult otherResults) On merging, we summarise number of objects and mark it as finished only if both results are finished.static DeletionResultstatic DeletionResultnotFinishedResults(int numberOfObjects) toString()
-
Field Details
-
HAS_FINISHED
public static final boolean HAS_FINISHED- See Also:
-
NOT_FINISHED_YET
public static final boolean NOT_FINISHED_YET- See Also:
-
-
Constructor Details
-
DeletionResult
public DeletionResult(int numberOfObjects, boolean finished)
-
-
Method Details
-
notFinishedResults
-
notFinishedResults
-
finishedResults
-
finishedResults
-
isFinished
public boolean isFinished() -
getNumberOfObjects
public int getNumberOfObjects() -
merge
On merging, we summarise number of objects and mark it as finished only if both results are finished.- Parameters:
otherResults- another deletion results- Returns:
- combined results.
-
equals
-
hashCode
public int hashCode() -
toString
-