Interface GridFSUploadPublisher<T>
-
- Type Parameters:
T- the result type of the publisher
- All Superinterfaces:
org.reactivestreams.Publisher<T>
public interface GridFSUploadPublisher<T> extends org.reactivestreams.Publisher<T>A GridFSPublisherfor uploading data into GridFSProvides the
idfor 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BsonValuegetId()TheBsonValueid for this file.ObjectIdgetObjectId()Gets theObjectIdfor the file to be uploaded Throws aMongoGridFSExceptionif the file id is not an ObjectId.
-
-
-
Method Detail
-
getObjectId
ObjectId getObjectId()
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
-
-