[JAVA-2011] Deprecate unnecessary WriteConcern methods and constants Created: 08/Oct/15  Updated: 07/Dec/15  Resolved: 09/Oct/15

Status: Closed
Project: Java Driver
Component/s: API, Write Operations
Affects Version/s: None
Fix Version/s: 3.2.0

Type: Improvement Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The following constants, constructors, methods, and inner class of the WriteConcern class will be deprecated:

Constants:

  • FSYNCED
  • REPLICA_ACKNOWLEDGED
  • NORMAL
  • SAFE
  • FSYNC_SAFE
  • JOURNAL_SAFE
  • REPLICAS_SAFE

Constructors:

  • WriteConcern()
  • WriteConcern(boolean)
  • WriteConcern(int, int, boolean)
  • WriteConcern(int, int, boolean, boolean)
  • WriteConcern(java.lang.String, int, boolean, boolean)

Methods:

  • getFsync
  • sync
  • callGetLastError
  • withFsync
  • majorityWriteConcern

Inner classes

  • Majority


 Comments   
Comment by Jeffrey Yemin [ 07/Dec/15 ]

The 3.2.0 driver, which contains a fix for this issue, has been released today.

Comment by Githook User [ 09/Oct/15 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-2011: Address compiler warnings. Address checkstyle, codenarc, and findbugs errors.
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/7f9b4ebc7a0cccf5127996990e80a64c4b4bcdd4

Comment by Githook User [ 09/Oct/15 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-2011: In WriteConcern class, deprecate unnecessary and superseded constants, constructors, methods, and inner classes.
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/99c7c149f1c4a8b7a5dad8f0c5c45daf5b624925

Generated at Thu Feb 08 08:56:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.