Examples of threadsAllowedToBlockForConnectionMultiplier()


Examples of com.mongodb.MongoClientOptions.Builder.threadsAllowedToBlockForConnectionMultiplier()

     */
    public synchronized MongoClient connect() {
        if (m == null) {
            Builder options = new MongoClientOptions.Builder();
            options.connectionsPerHost(maxConnections);
            options.threadsAllowedToBlockForConnectionMultiplier(threadsAllowedToBlockMultiplier);

            try {

                // Connect to replica servers if given. Else the standard way to one server.
                if (replicaServers != null && replicaServers.size() > 0) {
View Full Code Here

Examples of com.mongodb.MongoClientOptions.Builder.threadsAllowedToBlockForConnectionMultiplier()

      builder.maxWaitTime(options.getMaxWaitTime());
      builder.readPreference(options.getReadPreference());
      builder.socketFactory(options.getSocketFactory());
      builder.socketKeepAlive(options.isSocketKeepAlive());
      builder.socketTimeout(options.getSocketTimeout());
      builder.threadsAllowedToBlockForConnectionMultiplier(options
          .getThreadsAllowedToBlockForConnectionMultiplier());
      builder.writeConcern(options.getWriteConcern());
    }
    return builder;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.