use of com.mongodb.connection.ClusterType in project mongo-java-driver by mongodb.
the class SingleServerCluster method publishDescription.
private void publishDescription(final ServerDescription serverDescription) {
ClusterType clusterType = getSettings().getRequiredClusterType();
if (clusterType == ClusterType.UNKNOWN && serverDescription != null) {
clusterType = serverDescription.getClusterType();
}
publishDescription(clusterType, serverDescription);
}
Aggregations