Package com.mongodb.async.client.gridfs
Interface GridFSUploadStream
-
- All Superinterfaces:
AsyncOutputStream
Deprecated.Prefer the Reactive Streams-based asynchronous driver (mongodb-driver-reactivestreams artifactId)
@Deprecated public interface GridFSUploadStream extends AsyncOutputStream
A GridFS OutputStream for uploading data into GridFSProvides the
id
for the file to be uploaded as well as thewrite
methods of aAsyncOutputStream
- Since:
- 3.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
abort(SingleResultCallback<Void> callback)
Deprecated.Aborts the upload and deletes any data.BsonValue
getId()
Deprecated.TheBsonValue
id for this file.ObjectId
getObjectId()
Deprecated.Gets theObjectId
for the file to be uploaded Throws aMongoGridFSException
if the file id is not an ObjectId.-
Methods inherited from interface com.mongodb.async.client.gridfs.AsyncOutputStream
close, write
-
-
-
-
Method Detail
-
getObjectId
ObjectId getObjectId()
Deprecated.Gets theObjectId
for the file to be uploaded Throws aMongoGridFSException
if the file id is not an ObjectId.- Returns:
- the ObjectId for the file to be uploaded
-
abort
void abort(SingleResultCallback<Void> callback)
Deprecated.Aborts the upload and deletes any data.- Parameters:
callback
- the callback that is triggered when the abort and cleanup has finished
-
-