public static class MongoClientConfiguration.Builder extends Object
| Constructor and Description |
|---|
Builder(com.google.common.net.HostAndPort hostAndPort) |
| Modifier and Type | Method and Description |
|---|---|
MongoClientConfiguration.Builder |
addAuthenticationConfiguration(MongoAuthenticationConfiguration authenticationConfiguration) |
MongoClientConfiguration |
build() |
com.google.common.collect.ImmutableList<MongoAuthenticationConfiguration> |
getAuthenticationConfiguration() |
com.google.common.net.HostAndPort |
getHostAndPort() |
SocketFactory |
getSocketFactory() |
boolean |
isSslAllowInvalidHostnames() |
boolean |
isSslEnabled() |
MongoClientConfiguration.Builder |
setSocketFactory(SocketFactory socketFactory) |
MongoClientConfiguration.Builder |
setSslAllowInvalidHostnames(boolean sslAllowInvalidHostnames) |
MongoClientConfiguration.Builder |
setSslEnabled(boolean sslEnabled) |
public com.google.common.net.HostAndPort getHostAndPort()
public SocketFactory getSocketFactory()
public MongoClientConfiguration.Builder setSocketFactory(SocketFactory socketFactory)
public boolean isSslEnabled()
public MongoClientConfiguration.Builder setSslEnabled(boolean sslEnabled)
public boolean isSslAllowInvalidHostnames()
public MongoClientConfiguration.Builder setSslAllowInvalidHostnames(boolean sslAllowInvalidHostnames)
public com.google.common.collect.ImmutableList<MongoAuthenticationConfiguration> getAuthenticationConfiguration()
public MongoClientConfiguration.Builder addAuthenticationConfiguration(MongoAuthenticationConfiguration authenticationConfiguration)
public MongoClientConfiguration build()
Copyright © 2016 8Kdata Technology. All rights reserved.