Package org.graylog2.database
Interface MongoConnection
- All Known Implementing Classes:
MongoConnectionForTests
,MongoConnectionImpl
public interface MongoConnection
-
Method Summary
Modifier and TypeMethodDescriptioncom.mongodb.MongoClient
connect()
com.mongodb.DB
Deprecated.com.mongodb.client.MongoDatabase
Get 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()
.