Skip to content

Commit c0acaaa

Browse files
author
Ryan
committed
expose the Mongo Options via get method.
1 parent f96f96a commit c0acaaa

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/com/mongodb/Mongo.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,13 @@ void _applyMongoOptions() {
512512
setWriteConcern( _options.getWriteConcern() );
513513
}
514514

515+
/**
516+
* Returns the mongo options.
517+
*/
518+
public MongoOptions getMongoOptions() {
519+
return _options;
520+
}
521+
515522
/**
516523
* Gets the maximum size for a BSON object supported by the current master server.
517524
* Note that this value may change over time depending on which server is master.

0 commit comments

Comments
 (0)