Package io.realm.mongodb.mongo
Class MongoClient
- java.lang.Object
-
- io.realm.mongodb.mongo.MongoClient
-
public abstract class MongoClient extends Object
The remote MongoClient used for working with data in MongoDB remotely via Realm.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MongoDatabasegetDatabase(String databaseName)Gets aMongoDatabaseinstance for the given database name.StringgetServiceName()Returns the service name for this client.
-
-
-
Method Detail
-
getDatabase
public MongoDatabase getDatabase(String databaseName)
Gets aMongoDatabaseinstance for the given database name.- Parameters:
databaseName- the name of the database to retrieve- Returns:
- a
RemoteMongoDatabaserepresenting the specified database
-
getServiceName
public String getServiceName()
Returns the service name for this client.- Returns:
- the service name.
-
-