Class SyncMongoClientFactory
- java.lang.Object
-
- com.mongodb.stitch.core.services.mongodb.remote.sync.internal.SyncMongoClientFactory
-
public abstract class SyncMongoClientFactory extends Object
-
-
Constructor Summary
Constructors Constructor Description SyncMongoClientFactory()
-
Method Summary
Modifier and Type Method Description static boolean
deleteDatabase(StitchAppClientInfo appInfo, String serviceName, EmbeddedMongoClientFactory clientFactory, String userId)
Delete a database for a given path and userId.static MongoClient
getClient(StitchAppClientInfo appInfo, String serviceName, EmbeddedMongoClientFactory clientFactory)
-
-
-
Method Detail
-
getClient
public static MongoClient getClient(StitchAppClientInfo appInfo, String serviceName, EmbeddedMongoClientFactory clientFactory)
-
deleteDatabase
public static boolean deleteDatabase(StitchAppClientInfo appInfo, String serviceName, EmbeddedMongoClientFactory clientFactory, String userId)
Delete a database for a given path and userId.- Parameters:
appInfo
- the info for this applicationserviceName
- the name of the associated serviceclientFactory
- the associated factory that creates clientsuserId
- the id of the user's to delete- Returns:
- true if successfully deleted, false if not
-
-