T - the result type of the publisherpublic interface GridFSUploadPublisher<T>
extends org.reactivestreams.Publisher<T>
Publisher for uploading data into GridFS
Provides the id for the file to be uploaded. Cancelling the subscription to this publisher will cause any uploaded data
to be cleaned up and removed.
| Modifier and Type | Method and Description |
|---|---|
org.bson.BsonValue |
getId()
The
BsonValue id for this file. |
org.bson.types.ObjectId |
getObjectId()
Gets the
ObjectId for the file to be uploaded
Throws a MongoGridFSException if the file id is not an ObjectId. |
org.bson.types.ObjectId getObjectId()
ObjectId for the file to be uploaded
Throws a MongoGridFSException if the file id is not an ObjectId.org.bson.BsonValue getId()
BsonValue id for this file.