class MongosHAServerSelector extends java.lang.Object implements ServerSelector
| Modifier and Type | Field and Description |
|---|---|
private java.util.Set<ServerAddress> |
consideredServers |
private ServerAddress |
stickTo |
| Constructor and Description |
|---|
MongosHAServerSelector() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<ServerDescription> |
choose(ClusterDescription clusterDescription) |
private java.util.Set<ServerAddress> |
getOkServers(ClusterDescription clusterDescription) |
java.lang.String |
toString() |
private ServerAddress stickTo
private java.util.Set<ServerAddress> consideredServers
public java.util.List<ServerDescription> choose(ClusterDescription clusterDescription)
choose in interface ServerSelectorpublic java.lang.String toString()
toString in class java.lang.Objectprivate java.util.Set<ServerAddress> getOkServers(ClusterDescription clusterDescription)