public interface MongoProvider
Mongo instances.| Modifier and Type | Method and Description |
|---|---|
MongoDatabaseCredentials |
getGlobalCredentials()
Gets the global database credentials being used for the global datasource.
|
Mongo |
getMongo()
Gets the global datasource.
|
Mongo |
getMongo(MongoDatabaseCredentials credentials)
Constructs a new datasource using the given credentials.
|
@Nonnull Mongo getMongo(@Nonnull MongoDatabaseCredentials credentials)
These instances are not cached, and a new datasource is created each time this method is called.
credentials - the credentials for the database@Nonnull MongoDatabaseCredentials getGlobalCredentials()
Copyright © 2018. All rights reserved.