vertx / io.vertx.reactivex.servicediscovery.types / MongoDataSource / rxGetMongoClient

# rxGetMongoClient

`open static fun rxGetMongoClient(discovery: ServiceDiscovery, filter: JsonObject): Single<MongoClient>`

Convenient method that looks for a Mongo datasource source and provides the configured io.vertx.reactivex.ext.mongo.MongoClient. The async result is marked as failed is there are no matching services, or if the lookup fails.

### Parameters

`discovery` - The service discovery instance

`filter` - The filter, optional

Return

`open static fun rxGetMongoClient(discovery: ServiceDiscovery, filter: Function<Record, Boolean>): Single<MongoClient>`

Convenient method that looks for a Mongo datasource source and provides the configured io.vertx.reactivex.ext.mongo.MongoClient. The async result is marked as failed is there are no matching services, or if the lookup fails.

### Parameters

`discovery` - The service discovery instance

`filter` - The filter

Return

`open static fun rxGetMongoClient(discovery: ServiceDiscovery, filter: JsonObject, consumerConfiguration: JsonObject): Single<MongoClient>`

Convenient method that looks for a Mongo datasource source and provides the configured io.vertx.reactivex.ext.mongo.MongoClient. The async result is marked as failed is there are no matching services, or if the lookup fails.

### Parameters

`discovery` - The service discovery instance

`filter` - The filter, optional

`consumerConfiguration` - the consumer configuration

Return