Skip to content

Commit 484d6ca

Browse files
committed
Deprecate MongoClientOptions#alwaysUseMBeans property
JAVA-3043
1 parent 0fa59ef commit 484d6ca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

driver-legacy/src/main/com/mongodb/MongoClientOptions.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,9 @@ public DBEncoderFactory getDbEncoderFactory() {
680680
* <p>Default is {@code false}.</p>
681681
*
682682
* @return true if JMX beans should always be MBeans
683+
* @deprecated there is no replacement for this property
683684
*/
685+
@Deprecated
684686
public boolean isAlwaysUseMBeans() {
685687
return alwaysUseMBeans;
686688
}
@@ -1460,7 +1462,9 @@ public Builder cursorFinalizerEnabled(final boolean cursorFinalizerEnabled) {
14601462
* @param alwaysUseMBeans true if driver should always use MBeans, regardless of VM version
14611463
* @return this
14621464
* @see MongoClientOptions#isAlwaysUseMBeans()
1465+
* @deprecated there is no replacement for this property
14631466
*/
1467+
@Deprecated
14641468
public Builder alwaysUseMBeans(final boolean alwaysUseMBeans) {
14651469
this.alwaysUseMBeans = alwaysUseMBeans;
14661470
return this;

0 commit comments

Comments
 (0)