use of com.mongodb.connection.ServerDescription in project mongo-java-driver by mongodb.
the class CompositeServerSelector method select.
@Override
public List<ServerDescription> select(final ClusterDescription clusterDescription) {
ClusterDescription curClusterDescription = clusterDescription;
List<ServerDescription> choices = null;
for (ServerSelector cur : serverSelectors) {
choices = cur.select(curClusterDescription);
curClusterDescription = new ClusterDescription(clusterDescription.getConnectionMode(), clusterDescription.getType(), choices, clusterDescription.getClusterSettings(), clusterDescription.getServerSettings());
}
return choices;
}
Aggregations