Java 类com.mongodb.reactivestreams.client.MongoClients 实例源码

项目:flink-mingo-tail    文件:ShardSetFinder.java   
private List<MongoClientWrapper> getMongoClient(List<ConnectionString> shardSet) {
   mongoClients = new ArrayList<>();
   try {
      for (ConnectionString address : shardSet) {
         com.mongodb.reactivestreams.client.MongoClient client = MongoClients.create(address);
         mongoClients.add(new MongoClientWrapper(address.getConnectionString(), client));
         Thread.sleep(100); // allow the client to establish prior to being
      }
   } catch (InterruptedException e) {
      e.printStackTrace();
   }
   return mongoClients;
}
项目:mongo-java-driver-reactivestreams    文件:Fixture.java   
public static synchronized MongoClient getMongoClient() {
    if (mongoClient == null) {
        mongoClient = MongoClients.create(getConnectionString());
        Runtime.getRuntime().addShutdownHook(new ShutdownHook());
    }
    return mongoClient;
}
项目:spring5demo    文件:MongoConfiguration.java   
@Override
public MongoClient mongoClient() {
    return MongoClients.create(String.format("mongodb://%s:%d", mongoProperties.getHost(), mongoProperties.getPort()));
}
项目:Spring-5.0-Cookbook    文件:MongoConfig.java   
@Override
public MongoClient mongoClient() {
    return MongoClients.create();
}
项目:spring-reactive-sample    文件:MongoConfig.java   
@Override
public MongoClient reactiveMongoClient() {
    return MongoClients.create(mongoUri);
}
项目:spring-reactive-sample    文件:MongoConfig.java   
@Override
public MongoClient reactiveMongoClient() {
    return MongoClients.create(mongoUri);
}
项目:spring-reactive-sample    文件:MongoConfig.java   
@Override
public MongoClient reactiveMongoClient() {
    return MongoClients.create(mongoUri);
}
项目:spring-reactive-sample    文件:MongoConfig.java   
@Override
public MongoClient reactiveMongoClient() {
    return MongoClients.create(mongoUri);
}
项目:spring-reactive-sample    文件:MongoConfig.java   
@Override
public MongoClient reactiveMongoClient() {
    return MongoClients.create(mongoUri);
}
项目:spring-reactive-sample    文件:MongoConfig.java   
@Override
public MongoClient reactiveMongoClient() {
    return MongoClients.create(mongoUri);
}
项目:spring-react-one    文件:ApplicationConfiguration.java   
public MongoClient mongoClient() {
    return MongoClients.create(String.format("mongodb://localhost:%d", mongoProperties.getPort()));
}
项目:spring-data-examples    文件:ApplicationConfiguration.java   
@Override
@Bean
@DependsOn("embeddedMongoServer")
public MongoClient mongoClient() {
    return MongoClients.create(String.format("mongodb://localhost:%d", mongoProperties.getPort()));
}
项目:AngularAndSpring    文件:MongoDbConfiguration.java   
@Override
public MongoClient reactiveMongoClient() {
    return MongoClients.create("mongodb://localhost/"+getDatabaseName());
}
项目:reactive-spring5-example    文件:MongoConfiguration.java   
@Override
public MongoClient mongoClient() {
    return MongoClients.create();
}
项目:docker-workshop    文件:MongoConfiguration.java   
@Override
public MongoClient mongoClient() {
  return MongoClients.create(url);
}
项目:webflux-twitter-demo    文件:WebfluxTwitterDemoApplication.java   
@Override
public MongoClient mongoClient() {
    // this assumes your MongoDB is running on the default port, i.e. 27017
    return MongoClients.create();
}
项目:openshift-workshop    文件:MongoConfiguration.java   
@Override
public MongoClient reactiveMongoClient() {
  return MongoClients.create(url);
}
项目:openshift-workshop    文件:MongoConfiguration.java   
@Override
public MongoClient reactiveMongoClient() {
  return MongoClients.create(url);
}
项目:openshift-workshop    文件:MongoConfiguration.java   
@Override
public MongoClient reactiveMongoClient() {
  return MongoClients.create(url);
}
项目:openshift-workshop    文件:MongoConfiguration.java   
@Override
public MongoClient reactiveMongoClient() {
  return MongoClients.create(url);
}
项目:openshift-workshop    文件:MongoConfiguration.java   
@Override
public MongoClient reactiveMongoClient() {
  return MongoClients.create(url);
}
项目:openshift-workshop    文件:MongoConfiguration.java   
@Override
public MongoClient reactiveMongoClient() {
  return MongoClients.create(url);
}
项目:openshift-workshop    文件:MongoConfiguration.java   
@Override
public MongoClient reactiveMongoClient() {
  return MongoClients.create(url);
}
项目:openshift-workshop    文件:MongoConfiguration.java   
@Override
public MongoClient reactiveMongoClient() {
  return MongoClients.create(url);
}
项目:openshift-workshop    文件:MongoConfiguration.java   
@Override
public MongoClient reactiveMongoClient() {
  return MongoClients.create(url);
}
项目:whats-new-in-spring-data    文件:ApplicationConfiguration.java   
@Bean
MongoClient mongoClient() {
    return MongoClients.create();
}
项目:spring-reactive-playground    文件:MongoConfiguration.java   
@Override
public MongoClient mongoClient() {
    return MongoClients.create();
}