Class MongoClient
On this page
Atlas Device SDKs are deprecated. Refer to the deprecation page for details.
io.realm.mongodb.mongo
io.realm.mongodb.mongo.MongoClient
The remote MongoClient used for working with data in MongoDB remotely via Realm.
Method Summary
Modifier and Type | Method and Description |
---|---|
public MongoDatabase | Gets a MongoDatabase instance for the given database name. |
public String | Returns the service name for this client. |
Inherited Methods
Methods inherited from class java.lang.Object :
getClass
,hashCode
,equals
,clone
,toString
,notify
,notifyAll
,wait
,wait
,wait
,finalize
Method Detail
getDatabase
Gets a MongoDatabase instance for the given database name. Parameters
Returns a |
getServiceName
public String getServiceName () |
---|
Returns the service name for this client. Returns the service name. |