Example usage for com.mongodb MongoClientSettings getWriteConcern

List of usage examples for com.mongodb MongoClientSettings getWriteConcern

Introduction

In this page you can find the example usage for com.mongodb MongoClientSettings getWriteConcern.

Prototype

public WriteConcern getWriteConcern() 

Source Link

Document

The write concern to use.

Usage

From source file:com.navercorp.pinpoint.plugin.mongo.interceptor.MongoDriverConnectInterceptor3_7.java

License:Apache License

private String getWriteConcern(Object arg) {
    if (!(arg instanceof MongoClientSettings)) {
        return null;
    }//from  w  w w  . j a v  a  2  s  .c o m

    final MongoClientSettings mongoClientSettings = (MongoClientSettings) arg;

    return MongoUtil.getWriteConcern0(mongoClientSettings.getWriteConcern());
}