Class MongoGridFsClient
- All Implemented Interfaces:
MutinyDelegate
original non Mutiny-ified interface.- See Also:
-
MongoGridFsClient
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMongoGridFsClient(io.vertx.ext.mongo.MongoGridFsClient delegate) Create a new instance ofMongoGridFsClientdelegating to the given (non-null) instance ofMongoGridFsClient.MongoGridFsClient(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the client and release its resourcesio.smallrye.mutiny.Uni<Void>Deletes a file by it's IDvoiddeleteAndAwait(String id) Deletes a file by it's IDDeletes a file by it's IDio.smallrye.mutiny.Uni<Long>downloadByFileName(WriteStream<io.vertx.core.buffer.Buffer> stream, String fileName) Unlike the bare Vert.x variant, this method returns aUni.downloadByFileNameAndAwait(WriteStream<io.vertx.core.buffer.Buffer> stream, String fileName) Unlike the bare Vert.x variant, this method returns aLong.downloadByFileNameAndForget(WriteStream<io.vertx.core.buffer.Buffer> stream, String fileName) Unlike the bare Vert.x variant, this method ignores theLongresult or any failure.io.smallrye.mutiny.Uni<Long>downloadByFileNameWithOptions(WriteStream<io.vertx.core.buffer.Buffer> stream, String fileName, io.vertx.ext.mongo.GridFsDownloadOptions options) Unlike the bare Vert.x variant, this method returns aUni.downloadByFileNameWithOptionsAndAwait(WriteStream<io.vertx.core.buffer.Buffer> stream, String fileName, io.vertx.ext.mongo.GridFsDownloadOptions options) Unlike the bare Vert.x variant, this method returns aLong.downloadByFileNameWithOptionsAndForget(WriteStream<io.vertx.core.buffer.Buffer> stream, String fileName, io.vertx.ext.mongo.GridFsDownloadOptions options) Unlike the bare Vert.x variant, this method ignores theLongresult or any failure.io.smallrye.mutiny.Uni<Long>downloadById(WriteStream<io.vertx.core.buffer.Buffer> stream, String id) Unlike the bare Vert.x variant, this method returns aUni.downloadByIdAndAwait(WriteStream<io.vertx.core.buffer.Buffer> stream, String id) Unlike the bare Vert.x variant, this method returns aLong.downloadByIdAndForget(WriteStream<io.vertx.core.buffer.Buffer> stream, String id) Unlike the bare Vert.x variant, this method ignores theLongresult or any failure.io.smallrye.mutiny.Uni<Long>downloadFile(String fileName) Downloads a file.downloadFileAndAwait(String fileName) Downloads a file.downloadFileAndForget(String fileName) Downloads a file.io.smallrye.mutiny.Uni<Long>downloadFileAs(String fileName, String newFileName) Downloads a file and gives it a new name.downloadFileAsAndAwait(String fileName, String newFileName) Downloads a file and gives it a new name.downloadFileAsAndForget(String fileName, String newFileName) Downloads a file and gives it a new name.io.smallrye.mutiny.Uni<Long>downloadFileByID(String id, String fileName) Downloads a file using the ID generated by GridFs.downloadFileByIDAndAwait(String id, String fileName) Downloads a file using the ID generated by GridFs.downloadFileByIDAndForget(String id, String fileName) Downloads a file using the ID generated by GridFs.io.smallrye.mutiny.Uni<Void>drop()Drops the entire file bucket with all of its contentsvoidDrops the entire file bucket with all of its contentsDrops the entire file bucket with all of its contentsbooleanFinds all file ids in the bucketFinds all file ids in the bucketFinds all file ids in the bucketfindIds(io.vertx.core.json.JsonObject query) Finds all file ids that match a query.findIdsAndAwait(io.vertx.core.json.JsonObject query) Finds all file ids that match a query.findIdsAndForget(io.vertx.core.json.JsonObject query) Finds all file ids that match a query.io.vertx.ext.mongo.MongoGridFsClientGet the delegate instance.inthashCode()static MongoGridFsClientnewInstance(io.vertx.ext.mongo.MongoGridFsClient delegate) Creates a new instance of theMongoGridFsClient.ReadStream<io.vertx.core.buffer.Buffer>readByFileName(String fileName) Read file by name to ReadStreamReadStream<io.vertx.core.buffer.Buffer>readByFileNameWithOptions(String fileName, io.vertx.ext.mongo.GridFsDownloadOptions options) Read file by name to ReadStream with optionsReadStream<io.vertx.core.buffer.Buffer>Read file by id to ReadStreamtoString()io.smallrye.mutiny.Uni<String>uploadByFileName(ReadStream<io.vertx.core.buffer.Buffer> stream, String fileName) Unlike the bare Vert.x variant, this method returns aUni.io.smallrye.mutiny.Uni<String>uploadByFileName(Flow.Publisher<io.vertx.core.buffer.Buffer> stream, String fileName) Unlike the bare Vert.x variant, this method returns aUni.uploadByFileNameAndAwait(ReadStream<io.vertx.core.buffer.Buffer> stream, String fileName) Unlike the bare Vert.x variant, this method returns aString.uploadByFileNameAndAwait(Flow.Publisher<io.vertx.core.buffer.Buffer> stream, String fileName) Unlike the bare Vert.x variant, this method returns aString.uploadByFileNameAndForget(ReadStream<io.vertx.core.buffer.Buffer> stream, String fileName) Unlike the bare Vert.x variant, this method ignores theStringresult or any failure.uploadByFileNameAndForget(Flow.Publisher<io.vertx.core.buffer.Buffer> stream, String fileName) Unlike the bare Vert.x variant, this method ignores theStringresult or any failure.io.smallrye.mutiny.Uni<String>uploadByFileNameWithOptions(ReadStream<io.vertx.core.buffer.Buffer> stream, String fileName, io.vertx.ext.mongo.GridFsUploadOptions options) Unlike the bare Vert.x variant, this method returns aUni.io.smallrye.mutiny.Uni<String>uploadByFileNameWithOptions(Flow.Publisher<io.vertx.core.buffer.Buffer> stream, String fileName, io.vertx.ext.mongo.GridFsUploadOptions options) Unlike the bare Vert.x variant, this method returns aUni.uploadByFileNameWithOptionsAndAwait(ReadStream<io.vertx.core.buffer.Buffer> stream, String fileName, io.vertx.ext.mongo.GridFsUploadOptions options) Unlike the bare Vert.x variant, this method returns aString.uploadByFileNameWithOptionsAndAwait(Flow.Publisher<io.vertx.core.buffer.Buffer> stream, String fileName, io.vertx.ext.mongo.GridFsUploadOptions options) Unlike the bare Vert.x variant, this method returns aString.uploadByFileNameWithOptionsAndForget(ReadStream<io.vertx.core.buffer.Buffer> stream, String fileName, io.vertx.ext.mongo.GridFsUploadOptions options) Unlike the bare Vert.x variant, this method ignores theStringresult or any failure.uploadByFileNameWithOptionsAndForget(Flow.Publisher<io.vertx.core.buffer.Buffer> stream, String fileName, io.vertx.ext.mongo.GridFsUploadOptions options) Unlike the bare Vert.x variant, this method ignores theStringresult or any failure.io.smallrye.mutiny.Uni<String>uploadFile(String fileName) Upload a file to gridfsuploadFileAndAwait(String fileName) Upload a file to gridfsuploadFileAndForget(String fileName) Upload a file to gridfsio.smallrye.mutiny.Uni<String>uploadFileWithOptions(String fileName, io.vertx.ext.mongo.GridFsUploadOptions options) Upload a file to gridfs with optionsuploadFileWithOptionsAndAwait(String fileName, io.vertx.ext.mongo.GridFsUploadOptions options) Upload a file to gridfs with optionsuploadFileWithOptionsAndForget(String fileName, io.vertx.ext.mongo.GridFsUploadOptions options) Upload a file to gridfs with options
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
MongoGridFsClient
public MongoGridFsClient(io.vertx.ext.mongo.MongoGridFsClient delegate) Create a new instance ofMongoGridFsClientdelegating to the given (non-null) instance ofMongoGridFsClient. -
MongoGridFsClient
-
-
Method Details
-
getDelegate
public io.vertx.ext.mongo.MongoGridFsClient getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
delete
Deletes a file by it's IDUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
id- the identifier of the file- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
MongoGridFsClient.delete(String)
-
deleteAndAwait
Deletes a file by it's IDUnlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
id- the identifier of the file- See Also:
-
MongoGridFsClient.delete(String)
-
deleteAndForget
Deletes a file by it's IDUnlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Parameters:
id- the identifier of the file- Returns:
- The current instance to chain operations if needed.
- See Also:
-
MongoGridFsClient.delete(String)
-
downloadByFileName
@CheckReturnValue public io.smallrye.mutiny.Uni<Long> downloadByFileName(WriteStream<io.vertx.core.buffer.Buffer> stream, String fileName) Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
io.vertx.ext.mongo.MongoGridFsClient#downloadByFileName(WriteStream, String)
-
downloadByFileNameAndAwait
public Long downloadByFileNameAndAwait(WriteStream<io.vertx.core.buffer.Buffer> stream, String fileName) Unlike the bare Vert.x variant, this method returns a
Long. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Returns:
- The operation result
- See Also:
-
io.vertx.ext.mongo.MongoGridFsClient#downloadByFileName(WriteStream, String)
-
downloadByFileNameAndForget
public MongoGridFsClient downloadByFileNameAndForget(WriteStream<io.vertx.core.buffer.Buffer> stream, String fileName) Unlike the bare Vert.x variant, this method ignores the
Longresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
io.vertx.ext.mongo.MongoGridFsClient#downloadByFileName(WriteStream, String)
-
downloadByFileNameWithOptions
@CheckReturnValue public io.smallrye.mutiny.Uni<Long> downloadByFileNameWithOptions(WriteStream<io.vertx.core.buffer.Buffer> stream, String fileName, io.vertx.ext.mongo.GridFsDownloadOptions options) Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
io.vertx.ext.mongo.MongoGridFsClient#downloadByFileNameWithOptions(WriteStream, String, GridFsDownloadOptions)
-
downloadByFileNameWithOptionsAndAwait
public Long downloadByFileNameWithOptionsAndAwait(WriteStream<io.vertx.core.buffer.Buffer> stream, String fileName, io.vertx.ext.mongo.GridFsDownloadOptions options) Unlike the bare Vert.x variant, this method returns a
Long. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Returns:
- The operation result
- See Also:
-
io.vertx.ext.mongo.MongoGridFsClient#downloadByFileNameWithOptions(WriteStream, String, GridFsDownloadOptions)
-
downloadByFileNameWithOptionsAndForget
public MongoGridFsClient downloadByFileNameWithOptionsAndForget(WriteStream<io.vertx.core.buffer.Buffer> stream, String fileName, io.vertx.ext.mongo.GridFsDownloadOptions options) Unlike the bare Vert.x variant, this method ignores the
Longresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
io.vertx.ext.mongo.MongoGridFsClient#downloadByFileNameWithOptions(WriteStream, String, GridFsDownloadOptions)
-
downloadById
@CheckReturnValue public io.smallrye.mutiny.Uni<Long> downloadById(WriteStream<io.vertx.core.buffer.Buffer> stream, String id) Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
io.vertx.ext.mongo.MongoGridFsClient#downloadById(WriteStream, String)
-
downloadByIdAndAwait
Unlike the bare Vert.x variant, this method returns a
Long. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Returns:
- The operation result
- See Also:
-
io.vertx.ext.mongo.MongoGridFsClient#downloadById(WriteStream, String)
-
downloadByIdAndForget
public MongoGridFsClient downloadByIdAndForget(WriteStream<io.vertx.core.buffer.Buffer> stream, String id) Unlike the bare Vert.x variant, this method ignores the
Longresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
io.vertx.ext.mongo.MongoGridFsClient#downloadById(WriteStream, String)
-
downloadFile
Downloads a file.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
fileName- the name of the file to download- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
MongoGridFsClient.downloadFile(String)
-
downloadFileAndAwait
Downloads a file.Unlike the bare Vert.x variant, this method returns a
Long. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
fileName- the name of the file to download- Returns:
- The operation result
- See Also:
-
MongoGridFsClient.downloadFile(String)
-
downloadFileAndForget
Downloads a file.Unlike the bare Vert.x variant, this method ignores the
Longresult or any failure.- Parameters:
fileName- the name of the file to download- Returns:
- The current instance to chain operations if needed.
- See Also:
-
MongoGridFsClient.downloadFile(String)
-
downloadFileAs
@CheckReturnValue public io.smallrye.mutiny.Uni<Long> downloadFileAs(String fileName, String newFileName) Downloads a file and gives it a new name.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
fileName- the name of the file to downloadnewFileName- the name the file should be saved as- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
MongoGridFsClient.downloadFileAs(String, String)
-
downloadFileAsAndAwait
Downloads a file and gives it a new name.Unlike the bare Vert.x variant, this method returns a
Long. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
fileName- the name of the file to downloadnewFileName- the name the file should be saved as- Returns:
- The operation result
- See Also:
-
MongoGridFsClient.downloadFileAs(String, String)
-
downloadFileAsAndForget
Downloads a file and gives it a new name.Unlike the bare Vert.x variant, this method ignores the
Longresult or any failure.- Parameters:
fileName- the name of the file to downloadnewFileName- the name the file should be saved as- Returns:
- The current instance to chain operations if needed.
- See Also:
-
MongoGridFsClient.downloadFileAs(String, String)
-
downloadFileByID
Downloads a file using the ID generated by GridFs.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
id- the GridFs Object ID of the file to download- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
MongoGridFsClient.downloadFileByID(String, String)
-
downloadFileByIDAndAwait
Downloads a file using the ID generated by GridFs.Unlike the bare Vert.x variant, this method returns a
Long. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
id- the GridFs Object ID of the file to download- Returns:
- The operation result
- See Also:
-
MongoGridFsClient.downloadFileByID(String, String)
-
downloadFileByIDAndForget
Downloads a file using the ID generated by GridFs.Unlike the bare Vert.x variant, this method ignores the
Longresult or any failure.- Parameters:
id- the GridFs Object ID of the file to download- Returns:
- The current instance to chain operations if needed.
- See Also:
-
MongoGridFsClient.downloadFileByID(String, String)
-
drop
Drops the entire file bucket with all of its contentsUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
MongoGridFsClient.drop()
-
dropAndAwait
public void dropAndAwait()Drops the entire file bucket with all of its contentsUnlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- See Also:
-
MongoGridFsClient.drop()
-
dropAndForget
Drops the entire file bucket with all of its contentsUnlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
MongoGridFsClient.drop()
-
findAllIds
Finds all file ids in the bucketUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
MongoGridFsClient.findAllIds()
-
findAllIdsAndAwait
Finds all file ids in the bucketUnlike the bare Vert.x variant, this method returns a
List<String>. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Returns:
- The operation result
- See Also:
-
MongoGridFsClient.findAllIds()
-
findAllIdsAndForget
Finds all file ids in the bucketUnlike the bare Vert.x variant, this method ignores the
List<String>result or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
MongoGridFsClient.findAllIds()
-
findIds
@CheckReturnValue public io.smallrye.mutiny.Uni<List<String>> findIds(io.vertx.core.json.JsonObject query) Finds all file ids that match a query.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
query- a bson query expressed as json that will be used to match files- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
MongoGridFsClient.findIds(JsonObject)
-
findIdsAndAwait
Finds all file ids that match a query.Unlike the bare Vert.x variant, this method returns a
List<String>. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
query- a bson query expressed as json that will be used to match files- Returns:
- The operation result
- See Also:
-
MongoGridFsClient.findIds(JsonObject)
-
findIdsAndForget
Finds all file ids that match a query.Unlike the bare Vert.x variant, this method ignores the
List<String>result or any failure.- Parameters:
query- a bson query expressed as json that will be used to match files- Returns:
- The current instance to chain operations if needed.
- See Also:
-
MongoGridFsClient.findIds(JsonObject)
-
uploadByFileName
@CheckReturnValue public io.smallrye.mutiny.Uni<String> uploadByFileName(ReadStream<io.vertx.core.buffer.Buffer> stream, String fileName) Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
io.vertx.ext.mongo.MongoGridFsClient#uploadByFileName(ReadStream, String)
-
uploadByFileNameAndAwait
public String uploadByFileNameAndAwait(ReadStream<io.vertx.core.buffer.Buffer> stream, String fileName) Unlike the bare Vert.x variant, this method returns a
String. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Returns:
- The operation result
- See Also:
-
io.vertx.ext.mongo.MongoGridFsClient#uploadByFileName(ReadStream, String)
-
uploadByFileNameAndForget
public MongoGridFsClient uploadByFileNameAndForget(ReadStream<io.vertx.core.buffer.Buffer> stream, String fileName) Unlike the bare Vert.x variant, this method ignores the
Stringresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
io.vertx.ext.mongo.MongoGridFsClient#uploadByFileName(ReadStream, String)
-
uploadByFileName
@CheckReturnValue public io.smallrye.mutiny.Uni<String> uploadByFileName(Flow.Publisher<io.vertx.core.buffer.Buffer> stream, String fileName) Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
io.vertx.ext.mongo.MongoGridFsClient#uploadByFileName(ReadStream, String)
-
uploadByFileNameAndAwait
public String uploadByFileNameAndAwait(Flow.Publisher<io.vertx.core.buffer.Buffer> stream, String fileName) Unlike the bare Vert.x variant, this method returns a
String. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Returns:
- The operation result
- See Also:
-
io.vertx.ext.mongo.MongoGridFsClient#uploadByFileName(ReadStream, String)
-
uploadByFileNameAndForget
public MongoGridFsClient uploadByFileNameAndForget(Flow.Publisher<io.vertx.core.buffer.Buffer> stream, String fileName) Unlike the bare Vert.x variant, this method ignores the
Stringresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
io.vertx.ext.mongo.MongoGridFsClient#uploadByFileName(ReadStream, String)
-
uploadByFileNameWithOptions
@CheckReturnValue public io.smallrye.mutiny.Uni<String> uploadByFileNameWithOptions(ReadStream<io.vertx.core.buffer.Buffer> stream, String fileName, io.vertx.ext.mongo.GridFsUploadOptions options) Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
io.vertx.ext.mongo.MongoGridFsClient#uploadByFileNameWithOptions(ReadStream, String, GridFsUploadOptions)
-
uploadByFileNameWithOptionsAndAwait
public String uploadByFileNameWithOptionsAndAwait(ReadStream<io.vertx.core.buffer.Buffer> stream, String fileName, io.vertx.ext.mongo.GridFsUploadOptions options) Unlike the bare Vert.x variant, this method returns a
String. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Returns:
- The operation result
- See Also:
-
io.vertx.ext.mongo.MongoGridFsClient#uploadByFileNameWithOptions(ReadStream, String, GridFsUploadOptions)
-
uploadByFileNameWithOptionsAndForget
public MongoGridFsClient uploadByFileNameWithOptionsAndForget(ReadStream<io.vertx.core.buffer.Buffer> stream, String fileName, io.vertx.ext.mongo.GridFsUploadOptions options) Unlike the bare Vert.x variant, this method ignores the
Stringresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
io.vertx.ext.mongo.MongoGridFsClient#uploadByFileNameWithOptions(ReadStream, String, GridFsUploadOptions)
-
uploadByFileNameWithOptions
@CheckReturnValue public io.smallrye.mutiny.Uni<String> uploadByFileNameWithOptions(Flow.Publisher<io.vertx.core.buffer.Buffer> stream, String fileName, io.vertx.ext.mongo.GridFsUploadOptions options) Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
io.vertx.ext.mongo.MongoGridFsClient#uploadByFileNameWithOptions(ReadStream, String, GridFsUploadOptions)
-
uploadByFileNameWithOptionsAndAwait
public String uploadByFileNameWithOptionsAndAwait(Flow.Publisher<io.vertx.core.buffer.Buffer> stream, String fileName, io.vertx.ext.mongo.GridFsUploadOptions options) Unlike the bare Vert.x variant, this method returns a
String. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Returns:
- The operation result
- See Also:
-
io.vertx.ext.mongo.MongoGridFsClient#uploadByFileNameWithOptions(ReadStream, String, GridFsUploadOptions)
-
uploadByFileNameWithOptionsAndForget
public MongoGridFsClient uploadByFileNameWithOptionsAndForget(Flow.Publisher<io.vertx.core.buffer.Buffer> stream, String fileName, io.vertx.ext.mongo.GridFsUploadOptions options) Unlike the bare Vert.x variant, this method ignores the
Stringresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
io.vertx.ext.mongo.MongoGridFsClient#uploadByFileNameWithOptions(ReadStream, String, GridFsUploadOptions)
-
uploadFile
Upload a file to gridfsUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
fileName- the name of the file to store in gridfs- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
MongoGridFsClient.uploadFile(String)
-
uploadFileAndAwait
Upload a file to gridfsUnlike the bare Vert.x variant, this method returns a
String. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
fileName- the name of the file to store in gridfs- Returns:
- The operation result
- See Also:
-
MongoGridFsClient.uploadFile(String)
-
uploadFileAndForget
Upload a file to gridfsUnlike the bare Vert.x variant, this method ignores the
Stringresult or any failure.- Parameters:
fileName- the name of the file to store in gridfs- Returns:
- The current instance to chain operations if needed.
- See Also:
-
MongoGridFsClient.uploadFile(String)
-
uploadFileWithOptions
@CheckReturnValue public io.smallrye.mutiny.Uni<String> uploadFileWithOptions(String fileName, io.vertx.ext.mongo.GridFsUploadOptions options) Upload a file to gridfs with optionsUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
fileName- the name of the file to store in gridfsoptions-GridFsUploadOptionsfor specifying metadata and chunk size- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
MongoGridFsClient.uploadFileWithOptions(String, GridFsUploadOptions)
-
uploadFileWithOptionsAndAwait
public String uploadFileWithOptionsAndAwait(String fileName, io.vertx.ext.mongo.GridFsUploadOptions options) Upload a file to gridfs with optionsUnlike the bare Vert.x variant, this method returns a
String. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
fileName- the name of the file to store in gridfsoptions-GridFsUploadOptionsfor specifying metadata and chunk size- Returns:
- The operation result
- See Also:
-
MongoGridFsClient.uploadFileWithOptions(String, GridFsUploadOptions)
-
uploadFileWithOptionsAndForget
public MongoGridFsClient uploadFileWithOptionsAndForget(String fileName, io.vertx.ext.mongo.GridFsUploadOptions options) Upload a file to gridfs with optionsUnlike the bare Vert.x variant, this method ignores the
Stringresult or any failure.- Parameters:
fileName- the name of the file to store in gridfsoptions-GridFsUploadOptionsfor specifying metadata and chunk size- Returns:
- The current instance to chain operations if needed.
- See Also:
-
MongoGridFsClient.uploadFileWithOptions(String, GridFsUploadOptions)
-
readByFileName
Read file by name to ReadStream -
readByFileNameWithOptions
public ReadStream<io.vertx.core.buffer.Buffer> readByFileNameWithOptions(String fileName, io.vertx.ext.mongo.GridFsDownloadOptions options) Read file by name to ReadStream with options -
readById
Read file by id to ReadStream -
close
public void close()Close the client and release its resources -
newInstance
Creates a new instance of theMongoGridFsClient. -
hashCode
public int hashCode() -
equals
-
toString
-