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.
        databaseName - the name of the database to retrieve
        a RemoteMongoDatabase representing the specified database
      • getServiceName

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