30
30
import com .mongodb .event .ServerListener ;
31
31
import com .mongodb .internal .inject .SameObjectProvider ;
32
32
import com .mongodb .lang .Nullable ;
33
- import com .mongodb .spi .dns .InetAddressResolver ;
34
33
35
34
import java .util .List ;
36
35
@@ -54,8 +53,6 @@ public class DefaultClusterableServerFactory implements ClusterableServerFactory
54
53
private final List <MongoCompressor > compressorList ;
55
54
@ Nullable
56
55
private final ServerApi serverApi ;
57
- @ Nullable
58
- private final InetAddressResolver inetAddressResolver ;
59
56
60
57
public DefaultClusterableServerFactory (
61
58
final ServerSettings serverSettings , final ConnectionPoolSettings connectionPoolSettings ,
@@ -65,8 +62,7 @@ public DefaultClusterableServerFactory(
65
62
final LoggerSettings loggerSettings ,
66
63
@ Nullable final CommandListener commandListener ,
67
64
@ Nullable final String applicationName , @ Nullable final MongoDriverInformation mongoDriverInformation ,
68
- final List <MongoCompressor > compressorList , @ Nullable final ServerApi serverApi ,
69
- @ Nullable final InetAddressResolver inetAddressResolver ) {
65
+ final List <MongoCompressor > compressorList , @ Nullable final ServerApi serverApi ) {
70
66
this .serverSettings = serverSettings ;
71
67
this .connectionPoolSettings = connectionPoolSettings ;
72
68
this .internalConnectionPoolSettings = internalConnectionPoolSettings ;
@@ -79,7 +75,6 @@ public DefaultClusterableServerFactory(
79
75
this .mongoDriverInformation = mongoDriverInformation ;
80
76
this .compressorList = compressorList ;
81
77
this .serverApi = serverApi ;
82
- this .inetAddressResolver = inetAddressResolver ;
83
78
}
84
79
85
80
@ Override
@@ -90,11 +85,11 @@ public ClusterableServer create(final Cluster cluster, final ServerAddress serve
90
85
ServerMonitor serverMonitor = new DefaultServerMonitor (serverId , serverSettings , cluster .getClock (),
91
86
// no credentials, compressor list, or command listener for the server monitor factory
92
87
new InternalStreamConnectionFactory (clusterMode , true , heartbeatStreamFactory , null , applicationName ,
93
- mongoDriverInformation , emptyList (), loggerSettings , null , serverApi , inetAddressResolver ),
88
+ mongoDriverInformation , emptyList (), loggerSettings , null , serverApi ),
94
89
clusterMode , serverApi , sdamProvider );
95
90
ConnectionPool connectionPool = new DefaultConnectionPool (serverId ,
96
91
new InternalStreamConnectionFactory (clusterMode , streamFactory , credential , applicationName ,
97
- mongoDriverInformation , compressorList , loggerSettings , commandListener , serverApi , inetAddressResolver ),
92
+ mongoDriverInformation , compressorList , loggerSettings , commandListener , serverApi ),
98
93
connectionPoolSettings , internalConnectionPoolSettings , sdamProvider );
99
94
ServerListener serverListener = singleServerListener (serverSettings );
100
95
SdamServerDescriptionManager sdam = new DefaultSdamServerDescriptionManager (cluster , serverId , serverListener , serverMonitor ,
0 commit comments