List of usage examples for com.mongodb MongoClientOptions builder
public static Builder builder(final MongoClientOptions options)
From source file:io.opentracing.contrib.mongo.TracingMongoClient.java
License:Apache License
public TracingMongoClient(Tracer tracer, final ServerAddress addr, final MongoClientOptions options) { super(addr,/*from ww w. j a v a 2 s . co m*/ MongoClientOptions.builder(options).addCommandListener(new TracingCommandListener(tracer)).build()); }
From source file:io.opentracing.contrib.mongo.TracingMongoClient.java
License:Apache License
public TracingMongoClient(Tracer tracer, final ServerAddress addr, final List<MongoCredential> credentialsList, final MongoClientOptions options) { super(addr, credentialsList, MongoClientOptions.builder(options).addCommandListener(new TracingCommandListener(tracer)).build()); }
From source file:io.opentracing.contrib.mongo.TracingMongoClient.java
License:Apache License
public TracingMongoClient(Tracer tracer, final ServerAddress addr, final MongoCredential credential, final MongoClientOptions options) { super(addr, credential, MongoClientOptions.builder(options).addCommandListener(new TracingCommandListener(tracer)).build()); }
From source file:io.opentracing.contrib.mongo.TracingMongoClient.java
License:Apache License
public TracingMongoClient(Tracer tracer, final List<ServerAddress> seeds, final MongoClientOptions options) { super(seeds,// w w w . j av a2 s . co m MongoClientOptions.builder(options).addCommandListener(new TracingCommandListener(tracer)).build()); }
From source file:io.opentracing.contrib.mongo.TracingMongoClient.java
License:Apache License
public TracingMongoClient(Tracer tracer, final List<ServerAddress> seeds, final MongoClientOptions options, MongoSpanNameProvider spanNameProvider) { super(seeds, MongoClientOptions.builder(options) .addCommandListener(new TracingCommandListener(tracer, spanNameProvider)).build()); }
From source file:io.opentracing.contrib.mongo.TracingMongoClient.java
License:Apache License
public TracingMongoClient(Tracer tracer, final List<ServerAddress> seeds, final List<MongoCredential> credentialsList, final MongoClientOptions options) { super(seeds, credentialsList, MongoClientOptions.builder(options).addCommandListener(new TracingCommandListener(tracer)).build()); }
From source file:io.opentracing.contrib.mongo.TracingMongoClient.java
License:Apache License
public TracingMongoClient(Tracer tracer, final List<ServerAddress> seeds, final List<MongoCredential> credentialsList, final MongoClientOptions options, MongoSpanNameProvider spanNameProvider) { super(seeds, credentialsList, MongoClientOptions.builder(options) .addCommandListener(new TracingCommandListener(tracer, spanNameProvider)).build()); }
From source file:io.opentracing.contrib.mongo.TracingMongoClient.java
License:Apache License
public TracingMongoClient(Tracer tracer, final List<ServerAddress> seeds, final MongoCredential credential, final MongoClientOptions options) { super(seeds, credential, MongoClientOptions.builder(options).addCommandListener(new TracingCommandListener(tracer)).build()); }
From source file:io.opentracing.contrib.mongo.TracingMongoClient.java
License:Apache License
public TracingMongoClient(Tracer tracer, final List<ServerAddress> seeds, final MongoCredential credential, final MongoClientOptions options, final MongoDriverInformation mongoDriverInformation) { super(seeds, credential, MongoClientOptions.builder(options).addCommandListener(new TracingCommandListener(tracer)).build(), mongoDriverInformation);//from w ww .j av a 2 s . c o m }
From source file:io.opentracing.contrib.mongo.TracingMongoClient.java
License:Apache License
public TracingMongoClient(Tracer tracer, final ServerAddress addr, final List<MongoCredential> credentialsList, final MongoClientOptions options, final MongoDriverInformation mongoDriverInformation) { super(addr, credentialsList, MongoClientOptions.builder(options).addCommandListener(new TracingCommandListener(tracer)).build(), mongoDriverInformation);//from w ww. j ava 2 s .co m }