}
}
// This shouldn't happen -- but lets make sure, hey?
if(i>=connCount)
throw new ProviderException("BUG: JRedisService connection pool manager - index exceeds bounds!");
response = conns[i].serviceRequest(cmd, args);
}
finally {
// return the connection to the pool
synchronized(connInUse){
if(connInUse[i] != true)
throw new ProviderException("BUG: JRedisService connection pool manager - connection should have been marked in use!");
connInUse[i] = false;
}
// release the bounds sem.
connPoolAccess.release();