Classes
Methods
(static) MongoClient.createNonShared(vertx, config) → {MongoClient}
Create a Mongo client which maintains its own data source.
Parameters:
Name | Type | Description |
---|---|---|
vertx |
Vertx | the Vert.x instance |
config |
Object | the configuration |
- Source:
Returns:
the client
- Type
- MongoClient
(static) MongoClient.createShared(vertx, config, dataSourceName) → {MongoClient}
Create a Mongo client which shares its data source with any other Mongo clients created with the same
data source name
Parameters:
Name | Type | Description |
---|---|---|
vertx |
Vertx | the Vert.x instance |
config |
Object | the configuration |
dataSourceName |
string | the data source name |
- Source:
Returns:
the client
- Type
- MongoClient