本文整理了Java中io.airlift.http.client.HttpClient.close()
方法的一些代码示例,展示了HttpClient.close()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HttpClient.close()
方法的具体详情如下:
包路径:io.airlift.http.client.HttpClient
类名称:HttpClient
方法名:close
暂无
代码示例来源:origin: prestodb/presto
@Override
public void close()
{
httpClient.close();
}
代码示例来源:origin: prestodb/presto
@Override
public void close()
{
httpClient.close();
}
}
代码示例来源:origin: prestodb/presto
@AfterClass(alwaysRun = true)
public void tearDown()
{
httpClient.close();
httpClient = null;
scheduler.shutdownNow();
scheduler = null;
scheduledExecutor.shutdownNow();
scheduledExecutor = null;
pageBufferClientCallbackExecutor.shutdownNow();
pageBufferClientCallbackExecutor = null;
}
代码示例来源:origin: prestodb/presto
@AfterMethod(alwaysRun = true)
public void tearDown()
{
serdeFactory = null;
orderingCompiler = null;
httpClient.close();
httpClient = null;
executor.shutdownNow();
executor = null;
exchangeClientFactory.stop();
exchangeClientFactory = null;
}
代码示例来源:origin: uk.co.nichesolutions.presto/presto-cli
@Override
public void close()
{
httpClient.close();
}
代码示例来源:origin: uk.co.nichesolutions.presto/presto-cli
@Override
public void close()
{
httpClient.close();
}
}
代码示例来源:origin: prestosql/presto
@Override
public void close()
{
httpClient.close();
}
代码示例来源:origin: airlift/airlift
@PreDestroy
public void destroy()
{
client.close();
}
}
代码示例来源:origin: stackoverflow.com
public class Client extends AbstractVerticle {
// Convenience method so you can run it in your IDE
public static void main(String[] args) {
Runner.runExample(Client.class);
}
@Override
public void start() throws Exception {
HttpClient httpClient = vertx.createHttpClient().getNow(8080, "localhost", "/", resp -> {
System.out.println("Got response " + resp.statusCode());
resp.bodyHandler(body -> {
System.out.println("Got data " + body.toString("ISO-8859-1"));
httpClient.close();
});
});
}
}
代码示例来源:origin: io.airlift/event
@AfterMethod(alwaysRun = true)
public void tearDown()
throws Exception
{
if (server != null) {
server.stop();
}
httpClient.close();
}
代码示例来源:origin: airlift/airlift
@AfterMethod(alwaysRun = true)
public void tearDown()
throws Exception
{
if (server != null) {
server.stop();
}
httpClient.close();
}
代码示例来源:origin: uk.co.nichesolutions.presto/presto-main
@AfterClass
public void tearDown()
throws Exception
{
httpClient.close();
httpClient = null;
executor.shutdownNow();
executor = null;
}
代码示例来源:origin: stackoverflow.com
HttpClient httpClient = null; // initialize
try {
try {
// do something with httpClient
} catch(Exception e) {
throw new MyException("request failed : ", e);
} finally {
httpClient.close();
}
} catch (IOException e) {
throw new MyException("failed to close server conn: ", e);
}
代码示例来源:origin: prestosql/presto
@AfterClass(alwaysRun = true)
public void tearDown()
{
httpClient.close();
httpClient = null;
scheduler.shutdownNow();
scheduler = null;
scheduledExecutor.shutdownNow();
scheduledExecutor = null;
pageBufferClientCallbackExecutor.shutdownNow();
pageBufferClientCallbackExecutor = null;
}
代码示例来源:origin: io.prestosql/presto-main
@AfterClass(alwaysRun = true)
public void tearDown()
{
httpClient.close();
httpClient = null;
scheduler.shutdownNow();
scheduler = null;
scheduledExecutor.shutdownNow();
scheduledExecutor = null;
pageBufferClientCallbackExecutor.shutdownNow();
pageBufferClientCallbackExecutor = null;
}
代码示例来源:origin: prestosql/presto
@AfterMethod(alwaysRun = true)
public void tearDown()
{
serdeFactory = null;
orderingCompiler = null;
httpClient.close();
httpClient = null;
executor.shutdownNow();
executor = null;
exchangeClientFactory.stop();
exchangeClientFactory = null;
}
代码示例来源:origin: io.prestosql/presto-main
@AfterMethod(alwaysRun = true)
public void tearDown()
{
serdeFactory = null;
orderingCompiler = null;
httpClient.close();
httpClient = null;
executor.shutdownNow();
executor = null;
exchangeClientFactory.stop();
exchangeClientFactory = null;
}
内容来源于网络,如有侵权,请联系作者删除!