File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
driver-legacy/src/main/com/mongodb Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -693,7 +693,9 @@ public boolean isAlwaysUseMBeans() {
693
693
* <p>Default is SocketFactory.getDefault()</p>
694
694
*
695
695
* @return the socket factory
696
+ * @deprecated Prefer {@link #isSslEnabled()} and {@link #getSslContext()}
696
697
*/
698
+ @ Deprecated
697
699
public SocketFactory getSocketFactory () {
698
700
if (socketFactory != null ) {
699
701
return socketFactory ;
@@ -1437,7 +1439,9 @@ public Builder addServerMonitorListener(final ServerMonitorListener serverMonito
1437
1439
* @param socketFactory the socket factory
1438
1440
* @return {@code this}
1439
1441
* @see MongoClientOptions#getSocketFactory()
1442
+ * @deprecated Prefer {@link #sslEnabled(boolean)} and {@link #sslContext(SSLContext)}
1440
1443
*/
1444
+ @ Deprecated
1441
1445
public Builder socketFactory (final SocketFactory socketFactory ) {
1442
1446
this .socketFactory = socketFactory ;
1443
1447
return this ;
You can’t perform that action at this time.
0 commit comments