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(com.mongodb.async.SingleResultCallback<java.lang.Void> callback)Deprecated.Aborts the upload and deletes any data.org.bson.BsonValuegetId()Deprecated.TheBsonValueid for this file.org.bson.types.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
org.bson.types.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
-
getId
org.bson.BsonValue getId()
Deprecated.TheBsonValueid for this file.- Returns:
- the id for this file
-
abort
void abort(com.mongodb.async.SingleResultCallback<java.lang.Void> callback)
Deprecated.Aborts the upload and deletes any data.- Parameters:
callback- the callback that is triggered when the abort and cleanup has finished
-
-