|
25 | 25 |
|
26 | 26 | import org.bson.UuidRepresentation;
|
27 | 27 | import org.bson.codecs.configuration.CodecRegistry;
|
28 |
| - |
29 | 28 | import org.springframework.beans.factory.config.AbstractFactoryBean;
|
30 |
| -import org.springframework.data.mongodb.util.MongoCompatibilityAdapter; |
31 | 29 | import org.springframework.lang.Nullable;
|
32 | 30 | import org.springframework.util.CollectionUtils;
|
33 | 31 | import org.springframework.util.StringUtils;
|
@@ -57,8 +55,6 @@ public class MongoClientSettingsFactoryBean extends AbstractFactoryBean<MongoCli
|
57 | 55 |
|
58 | 56 | private CodecRegistry codecRegistry = DEFAULT_MONGO_SETTINGS.getCodecRegistry();
|
59 | 57 |
|
60 |
| - @Nullable private Object streamFactoryFactory = MongoCompatibilityAdapter |
61 |
| - .clientSettingsAdapter(DEFAULT_MONGO_SETTINGS).getStreamFactoryFactory(); |
62 | 58 | @Nullable private TransportSettings transportSettings;
|
63 | 59 |
|
64 | 60 | private ReadPreference readPreference = DEFAULT_MONGO_SETTINGS.getReadPreference();
|
@@ -371,16 +367,6 @@ public void setReadPreference(ReadPreference readPreference) {
|
371 | 367 | this.readPreference = readPreference;
|
372 | 368 | }
|
373 | 369 |
|
374 |
| - /** |
375 |
| - * @param streamFactoryFactory |
376 |
| - * @deprecated since 4.3, will be removed in the MongoDB 5.0 driver in favor of |
377 |
| - * {@code com.mongodb.connection.TransportSettings}. |
378 |
| - */ |
379 |
| - @Deprecated(since = "4.3") |
380 |
| - public void setStreamFactoryFactory(Object streamFactoryFactory) { |
381 |
| - this.streamFactoryFactory = streamFactoryFactory; |
382 |
| - } |
383 |
| - |
384 | 370 | public void setTransportSettings(@Nullable TransportSettings transportSettings) {
|
385 | 371 | this.transportSettings = transportSettings;
|
386 | 372 | }
|
@@ -492,10 +478,6 @@ protected MongoClientSettings createInstance() {
|
492 | 478 | builder.transportSettings(transportSettings);
|
493 | 479 | }
|
494 | 480 |
|
495 |
| - if (streamFactoryFactory != null) { |
496 |
| - MongoCompatibilityAdapter.clientSettingsBuilderAdapter(builder).setStreamFactoryFactory(streamFactoryFactory); |
497 |
| - } |
498 |
| - |
499 | 481 | if (retryReads != null) {
|
500 | 482 | builder = builder.retryReads(retryReads);
|
501 | 483 | }
|
|
0 commit comments