public static class MongoDbConfig.ClientConfig extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MongoDbConfig.ClientConfig.DatabaseConfig |
Constructor and Description |
---|
ClientConfig() |
Modifier and Type | Method and Description |
---|---|
MongoDbConfig.ClientConfig |
addCredential(String credential) |
MongoDbConfig.ClientConfig |
addDatabase(String name,
MongoDbConfig.ClientConfig.DatabaseConfig databaseConfig) |
MongoDbConfig.ClientConfig |
addHost(String host) |
List<String> |
getCredentials() |
Map<String,MongoDbConfig.ClientConfig.DatabaseConfig> |
getDatabases() |
List<String> |
getHosts() |
String |
getUri() |
boolean |
isAsync() |
boolean |
isConfiguredByUri() |
MongoDbConfig.ClientConfig |
setAsync(boolean async) |
MongoDbConfig.ClientConfig |
setUri(String uri) |
public boolean isAsync()
public MongoDbConfig.ClientConfig setAsync(boolean async)
public boolean isConfiguredByUri()
public String getUri()
public MongoDbConfig.ClientConfig setUri(String uri)
public MongoDbConfig.ClientConfig addHost(String host)
public MongoDbConfig.ClientConfig addCredential(String credential)
public Map<String,MongoDbConfig.ClientConfig.DatabaseConfig> getDatabases()
public MongoDbConfig.ClientConfig addDatabase(String name, MongoDbConfig.ClientConfig.DatabaseConfig databaseConfig)
Copyright © 2013-2018–2019 SeedStack. All rights reserved.