Class MongoClient
On this page
Realm is now Atlas Device SDK – Learn More
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. |