Package | Description |
---|---|
io.vertx.rxjava.ext.auth.mongo | |
io.vertx.rxjava.ext.mongo | |
io.vertx.rxjava.servicediscovery.types |
Modifier and Type | Method and Description |
---|---|
static MongoUserUtil |
MongoUserUtil.create(MongoClient client)
Create an instance of the user helper.
|
static MongoAuthentication |
MongoAuthentication.create(MongoClient mongoClient,
HashStrategy hashStrategy,
io.vertx.ext.auth.mongo.MongoAuthenticationOptions options) |
static MongoAuth |
MongoAuth.create(MongoClient mongoClient,
io.vertx.core.json.JsonObject config)
Deprecated.
|
static MongoAuthentication |
MongoAuthentication.create(MongoClient mongoClient,
io.vertx.ext.auth.mongo.MongoAuthenticationOptions options)
Creates an instance of MongoAuth by using the given and configuration object.
|
static MongoUserUtil |
MongoUserUtil.create(MongoClient client,
io.vertx.ext.auth.mongo.MongoAuthenticationOptions authenticationOptions,
io.vertx.ext.auth.mongo.MongoAuthorizationOptions authorizationOptions)
Create an instance of the user helper with custom queries.
|
static MongoAuthorization |
MongoAuthorization.create(String providerId,
MongoClient mongoClient,
io.vertx.ext.auth.mongo.MongoAuthorizationOptions options)
Creates an instance of MongoAuthorization by using the given and configuration object.
|
Modifier and Type | Field and Description |
---|---|
static TypeArg<MongoClient> |
MongoClient.__TYPE_ARG |
Modifier and Type | Method and Description |
---|---|
MongoClient |
MongoClient.bulkWrite(String collection,
List<io.vertx.ext.mongo.BulkOperation> operations)
Execute a bulk operation.
|
MongoClient |
MongoClient.bulkWrite(String collection,
List<io.vertx.ext.mongo.BulkOperation> operations,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.mongo.MongoClientBulkWriteResult>> resultHandler)
Execute a bulk operation.
|
MongoClient |
MongoClient.bulkWriteWithOptions(String collection,
List<io.vertx.ext.mongo.BulkOperation> operations,
io.vertx.ext.mongo.BulkWriteOptions bulkWriteOptions)
Execute a bulk operation with the specified write options.
|
MongoClient |
MongoClient.bulkWriteWithOptions(String collection,
List<io.vertx.ext.mongo.BulkOperation> operations,
io.vertx.ext.mongo.BulkWriteOptions bulkWriteOptions,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.mongo.MongoClientBulkWriteResult>> resultHandler)
Execute a bulk operation with the specified write options.
|
MongoClient |
MongoClient.count(String collection,
io.vertx.core.json.JsonObject query)
Count matching documents in a collection.
|
MongoClient |
MongoClient.count(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Long>> resultHandler)
Count matching documents in a collection.
|
static MongoClient |
MongoClient.create(Vertx vertx,
io.vertx.core.json.JsonObject config)
Create a Mongo client which maintains its own data source.
|
MongoClient |
MongoClient.createCollection(String collectionName)
Create a new collection
|
MongoClient |
MongoClient.createCollection(String collectionName,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Create a new collection
|
MongoClient |
MongoClient.createDefaultGridFsBucketService()
Creates a
MongoGridFsClient used to interact with Mongo GridFS. |
MongoClient |
MongoClient.createDefaultGridFsBucketService(io.vertx.core.Handler<io.vertx.core.AsyncResult<MongoGridFsClient>> resultHandler)
Creates a
MongoGridFsClient used to interact with Mongo GridFS. |
MongoClient |
MongoClient.createGridFsBucketService(String bucketName)
Creates a
MongoGridFsClient used to interact with Mongo GridFS. |
MongoClient |
MongoClient.createGridFsBucketService(String bucketName,
io.vertx.core.Handler<io.vertx.core.AsyncResult<MongoGridFsClient>> resultHandler)
Creates a
MongoGridFsClient used to interact with Mongo GridFS. |
MongoClient |
MongoClient.createIndex(String collection,
io.vertx.core.json.JsonObject key)
Creates an index.
|
MongoClient |
MongoClient.createIndex(String collection,
io.vertx.core.json.JsonObject key,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Creates an index.
|
MongoClient |
MongoClient.createIndexes(String collection,
List<io.vertx.ext.mongo.IndexModel> indexes)
creates an indexes
|
MongoClient |
MongoClient.createIndexes(String collection,
List<io.vertx.ext.mongo.IndexModel> indexes,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
creates an indexes
|
MongoClient |
MongoClient.createIndexWithOptions(String collection,
io.vertx.core.json.JsonObject key,
io.vertx.ext.mongo.IndexOptions options)
Creates an index.
|
MongoClient |
MongoClient.createIndexWithOptions(String collection,
io.vertx.core.json.JsonObject key,
io.vertx.ext.mongo.IndexOptions options,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Creates an index.
|
static MongoClient |
MongoClient.createShared(Vertx vertx,
io.vertx.core.json.JsonObject config)
Like
createShared(io.vertx.rxjava.core.Vertx, io.vertx.core.json.JsonObject, java.lang.String) but with the default data source name |
static MongoClient |
MongoClient.createShared(Vertx vertx,
io.vertx.core.json.JsonObject config,
String dataSourceName)
Create a Mongo client which shares its data source with any other Mongo clients created with the same
data source name
|
MongoClient |
MongoClient.distinct(String collection,
String fieldName,
String resultClassname)
Gets the distinct values of the specified field name.
|
MongoClient |
MongoClient.distinct(String collection,
String fieldName,
String resultClassname,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonArray>> resultHandler)
Gets the distinct values of the specified field name.
|
MongoClient |
MongoClient.distinctWithQuery(String collection,
String fieldName,
String resultClassname,
io.vertx.core.json.JsonObject query)
Gets the distinct values of the specified field name filtered by specified query.
|
MongoClient |
MongoClient.distinctWithQuery(String collection,
String fieldName,
String resultClassname,
io.vertx.core.json.JsonObject query,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonArray>> resultHandler)
Gets the distinct values of the specified field name filtered by specified query.
|
MongoClient |
MongoClient.dropCollection(String collection)
Drop a collection
|
MongoClient |
MongoClient.dropCollection(String collection,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Drop a collection
|
MongoClient |
MongoClient.dropIndex(String collection,
String indexName)
Drops the index given its name.
|
MongoClient |
MongoClient.dropIndex(String collection,
String indexName,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Drops the index given its name.
|
MongoClient |
MongoClient.find(String collection,
io.vertx.core.json.JsonObject query)
Find matching documents in the specified collection
|
MongoClient |
MongoClient.find(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.Handler<io.vertx.core.AsyncResult<List<io.vertx.core.json.JsonObject>>> resultHandler)
Find matching documents in the specified collection
|
MongoClient |
MongoClient.findOne(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject fields)
Find a single matching document in the specified collection
|
MongoClient |
MongoClient.findOne(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject fields,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> resultHandler)
Find a single matching document in the specified collection
|
MongoClient |
MongoClient.findOneAndDelete(String collection,
io.vertx.core.json.JsonObject query)
Find a single matching document in the specified collection and delete it.
|
MongoClient |
MongoClient.findOneAndDelete(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> resultHandler)
Find a single matching document in the specified collection and delete it.
|
MongoClient |
MongoClient.findOneAndDeleteWithOptions(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.ext.mongo.FindOptions findOptions)
Find a single matching document in the specified collection and delete it.
|
MongoClient |
MongoClient.findOneAndDeleteWithOptions(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.ext.mongo.FindOptions findOptions,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> resultHandler)
Find a single matching document in the specified collection and delete it.
|
MongoClient |
MongoClient.findOneAndReplace(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject replace)
Find a single matching document in the specified collection and replace it.
|
MongoClient |
MongoClient.findOneAndReplace(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject replace,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> resultHandler)
Find a single matching document in the specified collection and replace it.
|
MongoClient |
MongoClient.findOneAndReplaceWithOptions(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject replace,
io.vertx.ext.mongo.FindOptions findOptions,
io.vertx.ext.mongo.UpdateOptions updateOptions)
Find a single matching document in the specified collection and replace it.
|
MongoClient |
MongoClient.findOneAndReplaceWithOptions(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject replace,
io.vertx.ext.mongo.FindOptions findOptions,
io.vertx.ext.mongo.UpdateOptions updateOptions,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> resultHandler)
Find a single matching document in the specified collection and replace it.
|
MongoClient |
MongoClient.findOneAndUpdate(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject update)
Find a single matching document in the specified collection and update it.
|
MongoClient |
MongoClient.findOneAndUpdate(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject update,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> resultHandler)
Find a single matching document in the specified collection and update it.
|
MongoClient |
MongoClient.findOneAndUpdateWithOptions(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject update,
io.vertx.ext.mongo.FindOptions findOptions,
io.vertx.ext.mongo.UpdateOptions updateOptions)
Find a single matching document in the specified collection and update it.
|
MongoClient |
MongoClient.findOneAndUpdateWithOptions(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject update,
io.vertx.ext.mongo.FindOptions findOptions,
io.vertx.ext.mongo.UpdateOptions updateOptions,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> resultHandler)
Find a single matching document in the specified collection and update it.
|
MongoClient |
MongoClient.findWithOptions(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.ext.mongo.FindOptions options)
Find matching documents in the specified collection, specifying options
|
MongoClient |
MongoClient.findWithOptions(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.ext.mongo.FindOptions options,
io.vertx.core.Handler<io.vertx.core.AsyncResult<List<io.vertx.core.json.JsonObject>>> resultHandler)
Find matching documents in the specified collection, specifying options
|
MongoClient |
MongoClient.getCollections()
Get a list of all collections in the database.
|
MongoClient |
MongoClient.getCollections(io.vertx.core.Handler<io.vertx.core.AsyncResult<List<String>>> resultHandler)
Get a list of all collections in the database.
|
MongoClient |
MongoClient.insert(String collection,
io.vertx.core.json.JsonObject document)
Insert a document in the specified collection
|
MongoClient |
MongoClient.insert(String collection,
io.vertx.core.json.JsonObject document,
io.vertx.core.Handler<io.vertx.core.AsyncResult<String>> resultHandler)
Insert a document in the specified collection
|
MongoClient |
MongoClient.insertWithOptions(String collection,
io.vertx.core.json.JsonObject document,
io.vertx.ext.mongo.WriteOption writeOption)
Insert a document in the specified collection with the specified write option
|
MongoClient |
MongoClient.insertWithOptions(String collection,
io.vertx.core.json.JsonObject document,
io.vertx.ext.mongo.WriteOption writeOption,
io.vertx.core.Handler<io.vertx.core.AsyncResult<String>> resultHandler)
Insert a document in the specified collection with the specified write option
|
MongoClient |
MongoClient.listIndexes(String collection)
Get all the indexes in this collection.
|
MongoClient |
MongoClient.listIndexes(String collection,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonArray>> resultHandler)
Get all the indexes in this collection.
|
static MongoClient |
MongoClient.newInstance(io.vertx.ext.mongo.MongoClient arg) |
MongoClient |
MongoClient.removeDocument(String collection,
io.vertx.core.json.JsonObject query)
Remove a single matching document from a collection and return the handler with MongoClientDeleteResult result
|
MongoClient |
MongoClient.removeDocument(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.mongo.MongoClientDeleteResult>> resultHandler)
Remove a single matching document from a collection and return the handler with MongoClientDeleteResult result
|
MongoClient |
MongoClient.removeDocuments(String collection,
io.vertx.core.json.JsonObject query)
Remove matching documents from a collection and return the handler with MongoClientDeleteResult result
|
MongoClient |
MongoClient.removeDocuments(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.mongo.MongoClientDeleteResult>> resultHandler)
Remove matching documents from a collection and return the handler with MongoClientDeleteResult result
|
MongoClient |
MongoClient.removeDocumentsWithOptions(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.ext.mongo.WriteOption writeOption)
Remove matching documents from a collection with the specified write option and return the handler with MongoClientDeleteResult result
|
MongoClient |
MongoClient.removeDocumentsWithOptions(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.ext.mongo.WriteOption writeOption,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.mongo.MongoClientDeleteResult>> resultHandler)
Remove matching documents from a collection with the specified write option and return the handler with MongoClientDeleteResult result
|
MongoClient |
MongoClient.removeDocumentWithOptions(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.ext.mongo.WriteOption writeOption)
Remove a single matching document from a collection with the specified write option and return the handler with MongoClientDeleteResult result
|
MongoClient |
MongoClient.removeDocumentWithOptions(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.ext.mongo.WriteOption writeOption,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.mongo.MongoClientDeleteResult>> resultHandler)
Remove a single matching document from a collection with the specified write option and return the handler with MongoClientDeleteResult result
|
MongoClient |
MongoClient.replaceDocuments(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject replace)
Replace matching documents in the specified collection and return the handler with MongoClientUpdateResult result
|
MongoClient |
MongoClient.replaceDocuments(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject replace,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.mongo.MongoClientUpdateResult>> resultHandler)
Replace matching documents in the specified collection and return the handler with MongoClientUpdateResult result
|
MongoClient |
MongoClient.replaceDocumentsWithOptions(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject replace,
io.vertx.ext.mongo.UpdateOptions options)
Replace matching documents in the specified collection, specifying options and return the handler with MongoClientUpdateResult result
|
MongoClient |
MongoClient.replaceDocumentsWithOptions(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject replace,
io.vertx.ext.mongo.UpdateOptions options,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.mongo.MongoClientUpdateResult>> resultHandler)
Replace matching documents in the specified collection, specifying options and return the handler with MongoClientUpdateResult result
|
MongoClient |
MongoClient.runCommand(String commandName,
io.vertx.core.json.JsonObject command)
Run an arbitrary MongoDB command.
|
MongoClient |
MongoClient.runCommand(String commandName,
io.vertx.core.json.JsonObject command,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> resultHandler)
Run an arbitrary MongoDB command.
|
MongoClient |
MongoClient.save(String collection,
io.vertx.core.json.JsonObject document)
Save a document in the specified collection
|
MongoClient |
MongoClient.save(String collection,
io.vertx.core.json.JsonObject document,
io.vertx.core.Handler<io.vertx.core.AsyncResult<String>> resultHandler)
Save a document in the specified collection
|
MongoClient |
MongoClient.saveWithOptions(String collection,
io.vertx.core.json.JsonObject document,
io.vertx.ext.mongo.WriteOption writeOption)
Save a document in the specified collection with the specified write option
|
MongoClient |
MongoClient.saveWithOptions(String collection,
io.vertx.core.json.JsonObject document,
io.vertx.ext.mongo.WriteOption writeOption,
io.vertx.core.Handler<io.vertx.core.AsyncResult<String>> resultHandler)
Save a document in the specified collection with the specified write option
|
MongoClient |
MongoClient.updateCollection(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject update)
Update matching documents in the specified collection and return the handler with MongoClientUpdateResult result
|
MongoClient |
MongoClient.updateCollection(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject update,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.mongo.MongoClientUpdateResult>> resultHandler)
Update matching documents in the specified collection and return the handler with MongoClientUpdateResult result
|
MongoClient |
MongoClient.updateCollectionWithOptions(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject update,
io.vertx.ext.mongo.UpdateOptions options)
Update matching documents in the specified collection, specifying options and return the handler with MongoClientUpdateResult result
|
MongoClient |
MongoClient.updateCollectionWithOptions(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject update,
io.vertx.ext.mongo.UpdateOptions options,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.mongo.MongoClientUpdateResult>> resultHandler)
Update matching documents in the specified collection, specifying options and return the handler with MongoClientUpdateResult result
|
Modifier and Type | Method and Description |
---|---|
static rx.Single<MongoClient> |
MongoDataSource.rxGetMongoClient(ServiceDiscovery discovery,
Function<io.vertx.servicediscovery.Record,Boolean> filter)
Convenient method that looks for a Mongo datasource source and provides the configured
MongoClient . |
static rx.Single<MongoClient> |
MongoDataSource.rxGetMongoClient(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter)
Convenient method that looks for a Mongo datasource source and provides the configured
MongoClient . |
static rx.Single<MongoClient> |
MongoDataSource.rxGetMongoClient(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter,
io.vertx.core.json.JsonObject consumerConfiguration)
Convenient method that looks for a Mongo datasource source and provides the configured
MongoClient . |
Modifier and Type | Method and Description |
---|---|
static void |
MongoDataSource.getMongoClient(ServiceDiscovery discovery,
Function<io.vertx.servicediscovery.Record,Boolean> filter,
io.vertx.core.Handler<io.vertx.core.AsyncResult<MongoClient>> resultHandler)
Convenient method that looks for a Mongo datasource source and provides the configured
MongoClient . |
static void |
MongoDataSource.getMongoClient(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter,
io.vertx.core.Handler<io.vertx.core.AsyncResult<MongoClient>> resultHandler)
Convenient method that looks for a Mongo datasource source and provides the configured
MongoClient . |
static void |
MongoDataSource.getMongoClient(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter,
io.vertx.core.json.JsonObject consumerConfiguration,
io.vertx.core.Handler<io.vertx.core.AsyncResult<MongoClient>> resultHandler)
Convenient method that looks for a Mongo datasource source and provides the configured
MongoClient . |
Copyright © 2021 Eclipse. All rights reserved.