|Modifier and Type||Method and Description|
Sets the number of chunks to return per batch.
Gets the corresponding
void getGridFSFile(SingleResultCallback<GridFSFile> callback)
GridFSFilefor the file being downloaded
callback- that returns the corresponding GridFSFile for the file being downloaded
GridFSDownloadStream batchSize(int batchSize)
Can be used to control the memory consumption of this InputStream. The smaller the batchSize the lower the memory consumption and higher latency.
batchSize- the batch size