Skip to content

Commit 3c23f84

Browse files
committed
Deprecate SocketStreamFactory constructor taking a SocketFactory
With the deprecation of MongoClientOptions#socketFactory, there is no longer a need for this constructor. JAVA-3050
1 parent 6d8d66b commit 3c23f84

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

driver-core/src/main/com/mongodb/connection/SocketStreamFactory.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ public SocketStreamFactory(final SocketSettings settings, final SslSettings sslS
5757
* @param settings the SocketSettings for connecting to a MongoDB server
5858
* @param sslSettings the SSL for connecting to a MongoDB server
5959
* @param socketFactory a SocketFactory for creating connections to servers.
60+
* @deprecated Prefer {@link #SocketStreamFactory(SocketSettings, SslSettings)}
6061
*/
62+
@Deprecated
6163
public SocketStreamFactory(final SocketSettings settings, final SslSettings sslSettings, final SocketFactory socketFactory) {
6264
this.settings = notNull("settings", settings);
6365
this.sslSettings = notNull("sslSettings", sslSettings);

0 commit comments

Comments
 (0)