public interface GridFSDownloadStream extends AsyncInputStream
GridFSFile for the file to being downloaded as well as the
read methods of a
|Modifier and Type||Method||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