cassandraClient = availableClientQueue.poll(maxWaitTimeWhenExhausted, TimeUnit.MILLISECONDS); if (cassandraClient == null) { throw new HPoolExhaustedException(String.format( "maxWaitTimeWhenExhausted exceeded for thread %s on host %s", new Object[] { Thread.currentThread().getName(), cassandraHost.getName() }));
he = new HectorTransportException(original); } else if (original instanceof NoSuchElementException) { he = new HPoolExhaustedException(original); } else if (original instanceof IllegalStateException) { he = new PoolIllegalStateException(original);
cassandraClient = availableClientQueue.poll(maxWaitTimeWhenExhausted, TimeUnit.MILLISECONDS); if (cassandraClient == null) { throw new HPoolExhaustedException(String.format( "maxWaitTimeWhenExhausted exceeded for thread %s on host %s", new Object[] { Thread.currentThread().getName(), cassandraHost.getName() }));
cassandraClient = availableClientQueue.poll(maxWaitTimeWhenExhausted, TimeUnit.MILLISECONDS); if (cassandraClient == null) { throw new HPoolExhaustedException(String.format( "maxWaitTimeWhenExhausted exceeded for thread %s on host %s", new Object[] { Thread.currentThread().getName(), cassandraHost.getName() }));
he = new HectorTransportException(original); } else if (original instanceof NoSuchElementException) { he = new HPoolExhaustedException(original); } else if (original instanceof IllegalStateException) { he = new PoolIllegalStateException(original);
return new HectorTransportException(original); } else if (original instanceof NoSuchElementException) { return new HPoolExhaustedException(original); } else if (original instanceof IllegalStateException) { return new PoolIllegalStateException(original);