Interface GridFSUploadPublisher<T>
- Type Parameters:
T
- the result type of the publisher
- All Superinterfaces:
Publisher<T>
A GridFS
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.
- Since:
- 1.13
-
Method Summary
Modifier and TypeMethodDescriptionorg.bson.BsonValue
getId()
TheBsonValue
id for this file.org.bson.types.ObjectId
Gets theObjectId
for the file to be uploaded
-
Method Details
-
getObjectId
org.bson.types.ObjectId getObjectId()Gets theObjectId
for the file to be uploadedThrows a
MongoGridFSException
if the file id is not an ObjectId.- Returns:
- the ObjectId for the file to be uploaded
-
getId
org.bson.BsonValue getId()TheBsonValue
id for this file.- Returns:
- the id for this file
-