* @return a {@link RiakConnectionPool} configured for the
* {@link PBClientConfig}
* @throws IOException
*/
private RiakConnectionPool makePool(Semaphore clusterSemaphore, PBClientConfig node) throws IOException {
RiakConnectionPool pool = null;
if (clusterSemaphore == null) {
pool = new RiakConnectionPool(node.getInitialPoolSize(), node.getPoolSize(),
InetAddress.getByName(node.getHost()), node.getPort(),
node.getConnectionWaitTimeoutMillis(), node.getSocketBufferSizeKb(),
node.getIdleConnectionTTLMillis(),
node.getRequestTimeoutMillis());
} else {
pool = new RiakConnectionPool(node.getInitialPoolSize(), new PoolSemaphore(clusterSemaphore,
node.getPoolSize()),
InetAddress.getByName(node.getHost()), node.getPort(),
node.getConnectionWaitTimeoutMillis(), node.getSocketBufferSizeKb(),
node.getIdleConnectionTTLMillis(),
node.getRequestTimeoutMillis());