Interface StashObjectsReader
- All Known Implementing Classes:
StashObjectsReaderImpl
public interface StashObjectsReader
Reads 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
Modifier and TypeMethodDescriptionlong
boolean
readObjects
(int numberOfObjects) Reads objects from stash.
-
Method Details
-
readObjects
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.
-