Search in sources :

Example 1 with ClusterType

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);
}
Also used : ClusterType(com.mongodb.connection.ClusterType)

Aggregations

ClusterType (com.mongodb.connection.ClusterType)1