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 MongoDatabase
getDatabase(String databaseName)
Gets aMongoDatabase
instance for the given database name.String
getServiceName()
Returns the service name for this client.
-
-
-
Method Detail
-
getDatabase
public MongoDatabase getDatabase(String databaseName)
Gets aMongoDatabase
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.
-
-