@Override public void returnClient(TransactionServiceThriftClient client) { getClientPool().release(client); }
@Override public CloseableThriftClient getCloseableClient() throws TException, TimeoutException, InterruptedException { TransactionServiceThriftClient client = getClientPool().obtain(obtainClientTimeoutMs, TimeUnit.MILLISECONDS); return new CloseableThriftClient(this, client); }