Package org.graylog2.database
Interface MongoConnection
- All Known Implementing Classes:
MongoConnectionForTests,MongoConnectionImpl
public interface MongoConnection
-
Method Summary
Modifier and TypeMethodDescriptioncom.mongodb.MongoClientconnect()com.mongodb.DBDeprecated.com.mongodb.client.MongoDatabaseGet instance of the configured MongoDB database.
-
Method Details
-
connect
com.mongodb.MongoClient connect() -
getDatabase
Deprecated.UsegetMongoDatabase().Get instance of the configured MongoDB database.- Returns:
- The configured MongoDB database.
-
getMongoDatabase
com.mongodb.client.MongoDatabase getMongoDatabase()Get instance of the configured MongoDB database.- Returns:
- The configured MongoDB database.
-
getMongoDatabase().