Interface CleanupJcrStorage.ScanBatchConsumer
- Enclosing class:
CleanupJcrStorage
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Receives the scanned batches streamed by
CleanupJcrStorage.scanRoot(String, String, int, CleanupParams, ScanBatchConsumer).-
Method Summary
Modifier and TypeMethodDescriptionbooleanonBatch(List<CleanupCandidate> candidates, String lastScannedPath, int scannedCount, CleanupNodeFailures nodeFailures)
-
Method Details
-
onBatch
boolean onBatch(List<CleanupCandidate> candidates, String lastScannedPath, int scannedCount, CleanupNodeFailures nodeFailures) - Parameters:
candidates- qualifying candidates of the batch, possibly emptylastScannedPath- path of the last node scanned by the batch (the resume checkpoint), never null since a batch scans at least one nodescannedCount- number of nodes scanned by the batchnodeFailures- nodes of the batch whose candidacy could NOT be evaluated, with the first failure that did it. Empty on a healthy batch, and reported per batch rather than per unit so the count survives an interruption like the checkpoint next to it does- Returns:
- true to continue the scan, false to abort the scan of this root
-