Interface StashObjectsReader
-
- All Known Implementing Classes:
StashObjectsReaderImpl
public interface StashObjectsReaderReads objects from a storage and returns instances of ImportedObjectV2. Note that the stash will be closed automatically when zero records are retrieved from the stash.- Since:
- 8.1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetNumberOfRetrievedObjects()booleanhasMoreRecords()List<ImportedObjectV2>readObjects(int numberOfObjects)Reads objects from stash.
-
-
-
Method Detail
-
readObjects
List<ImportedObjectV2> readObjects(int numberOfObjects) throws BackupRestoreException
Reads objects from stash.- Parameters:
numberOfObjects- number of objects.- Returns:
- list of objects (can be fewer than numberOfObjects if there is not enough objects in the stash)
- Throws:
BackupRestoreException
-
getNumberOfRetrievedObjects
long getNumberOfRetrievedObjects()
- Returns:
- number of already retrieved objects.
-
hasMoreRecords
boolean hasMoreRecords()
- Returns:
- true if the end of stash is not reached.
-
-