throws TTransportException, InterruptedException, ExecutionException
{
ThriftClientConfig config = new ThriftClientConfig().setConnectTimeout(new Duration(1, TimeUnit.SECONDS))
.setReadTimeout(new Duration(1, TimeUnit.SECONDS))
.setWriteTimeout(new Duration(1, TimeUnit.SECONDS));
HttpClientConnector connector =
new HttpClientConnector(URI.create("http://localhost:" + serverPort + "/thrift/"));
return new ThriftClient<>(clientManager, clientClass, config, "asyncTestClient").open(connector);
}