org.eclipse.jetty.client.HttpClient.isStopped()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(175)

本文整理了Java中org.eclipse.jetty.client.HttpClient.isStopped()方法的一些代码示例,展示了HttpClient.isStopped()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HttpClient.isStopped()方法的具体详情如下:
包路径:org.eclipse.jetty.client.HttpClient
类名称:HttpClient
方法名:isStopped

HttpClient.isStopped介绍

暂无

代码示例

代码示例来源:origin: allegro/hermes

private void startClient(HttpClient client) {
  if (client.isStopped()) {
    try {
      client.start();
    } catch (Exception ex) {
      logger.error("Could not start http client.", ex);
    }
  }
}

代码示例来源:origin: pl.allegro.tech.hermes/hermes-consumers

private void startClient(HttpClient client) {
  if (client.isStopped()) {
    try {
      client.start();
    } catch (Exception ex) {
      logger.error("Could not start http client.", ex);
    }
  }
}

代码示例来源:origin: blazegraph/database

private void assertHttpClientRunning() {
  if (httpClient.isStopped() || httpClient.isStopping())
    throw new IllegalStateException("The HTTPClient has been stopped");
}

代码示例来源:origin: labsai/EDDI

@Override
  public void run() {
    try {
      if (!httpClient.isStopped()) {
        httpClient.stop();
      }
    } catch (Throwable e) {
      String message = "HttpClient did not stop as expected.";
      System.out.println(message);
      System.out.println(Arrays.toString(e.getStackTrace()));
    }
  }
});

代码示例来源:origin: blazegraph/database

if (!our_httpClient.isStopping() && !our_httpClient.isStopped()) {

代码示例来源:origin: com.blazegraph/bigdata-core

throws Exception {
if (httpClient.isStopped()) {
  throw new FulltextSearchException("The client has been stopped");

代码示例来源:origin: blazegraph/database

throws Exception {
if (httpClient.isStopped()) {
  throw new FulltextSearchException("The client has been stopped");

相关文章

HttpClient类方法