@Override public CloseableThriftClient getCloseableClient() throws TException, TimeoutException, InterruptedException { TransactionServiceThriftClient client = this.clients.get(); if (client == null) { client = this.newClient(); clients.set(client); } return new CloseableThriftClient(this, client); }
return operation.execute(closeable.getThriftClient());
@Override public CloseableThriftClient getCloseableClient() throws TException, TimeoutException, InterruptedException { return new CloseableThriftClient(this, newClient(timeout)); }
@Override public CloseableThriftClient getCloseableClient() throws TException, TimeoutException, InterruptedException { TransactionServiceThriftClient client = getClientPool().obtain(obtainClientTimeoutMs, TimeUnit.MILLISECONDS); return new CloseableThriftClient(this, client); }