Interface ImportedObjectsStash
-
- All Known Implementing Classes:
ImportedObjectsStashImpl
public interface ImportedObjectsStash
Allows to temporarily "stash" imported objects and read them later. Objects should be kept on the disk (compressed) to keep the RAM free.- Since:
- 8.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
add(ImportedObjectV2 object)
Add object to stash.Integer
getIterationNumber()
String
getName()
long
getNumberOfObjects()
List<ImportedObjectV2>
readObjects(int numberOfObjects)
Read a collection of objects from the stash.
-
-
-
Method Detail
-
add
void add(ImportedObjectV2 object)
Add object to stash.
-
readObjects
List<ImportedObjectV2> readObjects(int numberOfObjects)
Read a collection of objects from the stash. If the stash has fewer objects than numberOfObjects, all objects will be returned.- Parameters:
numberOfObjects
- number of objects.- Returns:
- collection of objects
-
getName
String getName()
- Returns:
- stash name
-
getIterationNumber
Integer getIterationNumber()
- Returns:
- iteration number
-
getNumberOfObjects
long getNumberOfObjects()
- Returns:
- number of objects in the stash.
-
-