public abstract static class MongoDbDatabase.ClusterSettings extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MongoDbDatabase.ClusterSettings.Builder |
static class |
MongoDbDatabase.ClusterSettings.Type |
Constructor and Description |
---|
ClusterSettings() |
Modifier and Type | Method and Description |
---|---|
static MongoDbDatabase.ClusterSettings.Builder |
builder() |
abstract Set<InetSocketAddress> |
hosts()
The hosts for the cluster.
|
abstract long |
localThreshold()
This defines the size of the latency window for selecting among multiple suitable servers.
|
long |
localThreshold(TimeUnit unit) |
abstract long |
serverSelectionTimeout()
This is the timeout when selecting a server.
|
long |
serverSelectionTimeout(TimeUnit unit) |
abstract MongoDbDatabase.ClusterSettings.Type |
type()
The type of cluster to connect to
|
public abstract Set<InetSocketAddress> hosts()
public abstract MongoDbDatabase.ClusterSettings.Type type()
public abstract long localThreshold()
public long localThreshold(TimeUnit unit)
public abstract long serverSelectionTimeout()
public long serverSelectionTimeout(TimeUnit unit)
public static MongoDbDatabase.ClusterSettings.Builder builder()
Copyright © 2020. All rights reserved.