Class MongoClient


  • public abstract class MongoClient
    extends Object
    The remote MongoClient used for working with data in MongoDB remotely via Realm.
    • Method Detail

      • getDatabase

        public MongoDatabase getDatabase​(String databaseName)
        Gets a MongoDatabase instance for the given database name.
        Parameters:
        databaseName - the name of the database to retrieve
        Returns:
        a RemoteMongoDatabase representing the specified database
      • getServiceName

        public String getServiceName()
        Returns the service name for this client.
        Returns:
        the service name.