Package com.mongodb.async.client.gridfs
Interface GridFSDownloadStream
-
- All Superinterfaces:
AsyncInputStream
Deprecated.Prefer the Reactive Streams-based asynchronous driver (mongodb-driver-reactivestreams artifactId)
@Deprecated public interface GridFSDownloadStream extends AsyncInputStream
A GridFS InputStream for downloading data from GridFSProvides the
GridFSFile
for the file to being downloaded as well as theread
methods of aAsyncInputStream
- Since:
- 3.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description GridFSDownloadStream
batchSize(int batchSize)
Deprecated.Sets the number of chunks to return per batch.void
getGridFSFile(SingleResultCallback<GridFSFile> callback)
Deprecated.Gets the correspondingGridFSFile
for the file being downloaded-
Methods inherited from interface com.mongodb.async.client.gridfs.AsyncInputStream
close, read
-
-
-
-
Method Detail
-
getGridFSFile
void getGridFSFile(SingleResultCallback<GridFSFile> callback)
Deprecated.Gets the correspondingGridFSFile
for the file being downloaded- Parameters:
callback
- that returns the corresponding GridFSFile for the file being downloaded
-
batchSize
GridFSDownloadStream batchSize(int batchSize)
Deprecated.Sets the number of chunks to return per batch.Can be used to control the memory consumption of this InputStream. The smaller the batchSize the lower the memory consumption and higher latency.
- Parameters:
batchSize
- the batch size- Returns:
- this
- MongoDB documentation
- Batch Size
-
-