public abstract class ReactiveMongoDbUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static com.mongodb.reactivestreams.client.MongoDatabase |
getMongoDatabase(com.mongodb.reactivestreams.client.MongoClient mongo,
String databaseName)
Obtains a
MongoDatabase connection for the given MongoClient instance and database name |
public static com.mongodb.reactivestreams.client.MongoDatabase getMongoDatabase(com.mongodb.reactivestreams.client.MongoClient mongo,
String databaseName)
MongoDatabase connection for the given MongoClient instance and database namemongo - the MongoClient instance, must not be null.databaseName - the database name, must not be null or empty.MongoDatabase connectionCopyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.