Puoi creare la tua istanza MongoClient utilizzando MongoClientOptions. Costruttore .
MongoClientOptions.Builder builder = new MongoClientOptions.Builder();
MongoClientOptions options = builder.connectionsPerHost(10).build();
MongoClient client = new MongoClient(listOfServers, options);