Skip to content

Commit b2d278d

Browse files
committed
JAVA-2054: Add readConcern property to DB and DBCollection
1 parent fcd3214 commit b2d278d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

driver/src/main/com/mongodb/DB.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,23 +151,23 @@ public WriteConcern getWriteConcern() {
151151
* Sets the read concern for this database.
152152
*
153153
* @param readConcern the read concern to use for this collection
154-
* @since 3.2
154+
* @since 3.3
155155
* @mongodb.server.release 3.2
156156
* @mongodb.driver.manual reference/readConcern/ Read Concern
157157
*/
158-
void setReadConcern(final ReadConcern readConcern) {
158+
public void setReadConcern(final ReadConcern readConcern) {
159159
this.readConcern = readConcern;
160160
}
161161

162162
/**
163163
* Get the read concern for this database.
164164
*
165165
* @return the {@link com.mongodb.ReadConcern}
166-
* @since 3.2
166+
* @since 3.3
167167
* @mongodb.server.release 3.2
168168
* @mongodb.driver.manual reference/readConcern/ Read Concern
169169
*/
170-
ReadConcern getReadConcern() {
170+
public ReadConcern getReadConcern() {
171171
return readConcern != null ? readConcern : mongo.getReadConcern();
172172
}
173173

driver/src/main/com/mongodb/DBCollection.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1886,23 +1886,23 @@ public void setReadPreference(final ReadPreference preference) {
18861886
* Sets the read concern for this collection.
18871887
*
18881888
* @param readConcern the read concern to use for this collection
1889-
* @since 3.2
1889+
* @since 3.3
18901890
* @mongodb.server.release 3.2
18911891
* @mongodb.driver.manual reference/readConcern/ Read Concern
18921892
*/
1893-
void setReadConcern(final ReadConcern readConcern) {
1893+
public void setReadConcern(final ReadConcern readConcern) {
18941894
this.readConcern = readConcern;
18951895
}
18961896

18971897
/**
18981898
* Get the read concern for this collection.
18991899
*
19001900
* @return the {@link com.mongodb.ReadConcern}
1901-
* @since 3.2
1901+
* @since 3.3
19021902
* @mongodb.server.release 3.2
19031903
* @mongodb.driver.manual reference/readConcern/ Read Concern
19041904
*/
1905-
ReadConcern getReadConcern() {
1905+
public ReadConcern getReadConcern() {
19061906
if (readConcern != null) {
19071907
return readConcern;
19081908
}

0 commit comments

Comments
 (0)