.setMaxConnectionsPerHost(HostDistance.REMOTE, newMaxConnections)
.setMaxRequestsPerConnection(HostDistance.LOCAL, newMaxRequests)
.setMaxRequestsPerConnection(HostDistance.REMOTE, newMaxRequests)
).withSocketOptions(new SocketOptions()
.setReadTimeoutMillis(driverRequestTimeout)
<BUG>.setConnectTimeoutMillis(driverConnectionTimeout));
Cluster cluster = clusterBuilder.build();</BUG>
cluster.init();
Session createdSession = null;
try {

.setMaxConnectionsPerHost(HostDistance.REMOTE, newMaxConnections)
.setMaxRequestsPerConnection(HostDistance.LOCAL, newMaxRequests)
.setMaxRequestsPerConnection(HostDistance.REMOTE, newMaxRequests)
).withSocketOptions(new SocketOptions()
.setReadTimeoutMillis(driverRequestTimeout)
.setConnectTimeoutMillis(driverConnectionTimeout)
).withQueryOptions(new QueryOptions().setRefreshSchemaIntervalMillis(driverSchemaRefreshInterval));
Cluster cluster = clusterBuilder.build();
cluster.init();
Session createdSession = null;
try {
