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
idfor the file to be uploaded as well as thewritemethods of aAsyncOutputStream- Since:
- 3.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidabort(SingleResultCallback<Void> callback)Deprecated.Aborts the upload and deletes any data.BsonValuegetId()Deprecated.TheBsonValueid for this file.ObjectIdgetObjectId()Deprecated.Gets theObjectIdfor the file to be uploaded Throws aMongoGridFSExceptionif 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 theObjectIdfor the file to be uploaded Throws aMongoGridFSExceptionif 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
-
-