List of usage examples for com.mongodb ReadPreference PRIMARY_PREFERRED
ReadPreference PRIMARY_PREFERRED
To view the source code for com.mongodb ReadPreference PRIMARY_PREFERRED.
Click Source Link
From source file:org.opencb.commons.datastore.mongodb.MongoDataStoreManager.java
License:Apache License
private void init() { dataStoreServerAddresses = new ArrayList<>(); readPreference = MongoDBConfiguration.ReadPreference.PRIMARY_PREFERRED; writeConcern = ""; logger = LoggerFactory.getLogger(MongoDataStoreManager.class); }