Interface MongoConnection

All Known Implementing Classes:
MongoConnectionForTests, MongoConnectionImpl

public interface MongoConnection
  • Method Summary

    Modifier and Type
    Method
    Description
    com.mongodb.MongoClient
     
    com.mongodb.DB
    Deprecated.
    com.mongodb.client.MongoDatabase
    Get instance of the configured MongoDB database.
  • Method Details

    • connect

      com.mongodb.MongoClient connect()
    • getDatabase

      @Deprecated com.mongodb.DB getDatabase()
      Deprecated.
      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.