List of usage examples for com.mongodb MongoClientSettings getReadPreference
public ReadPreference getReadPreference()
From source file:com.navercorp.pinpoint.plugin.mongo.interceptor.MongoDriverConnectInterceptor3_7.java
License:Apache License
private String getReadPreference(Object arg) { if (!(arg instanceof MongoClientSettings)) { return null; }//w w w. j a v a 2s.c o m final MongoClientSettings mongoClientSettings = (MongoClientSettings) arg; return mongoClientSettings.getReadPreference().getName(); }