Policies policies = new Policies(loadBalancingPolicy, reconnectionPolicy, retryPolicy);
ProtocolOptions protocolOptions = (nativeProtocolPort == -1) ? new ProtocolOptions() : new ProtocolOptions(nativeProtocolPort);
PoolingOptions poolOptions = poolingOptions;
SocketOptions sockOptions = socketOptions;
MetricsOptions metricsOptions = new MetricsOptions(jmxReportingEnabled);
QueryOptions qOptions = queryOptions;
return new JavaDriverConnectionPoolConfigurationImpl(new Configuration(policies,
protocolOptions,
poolOptions,