org.glassfish.grizzly.Connection.terminateSilently()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(148)

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

Connection.terminateSilently介绍

[英]Close the Connection silently, no notification required on completion or failure.
[中]以静默方式关闭连接,完成或失败时无需通知。

代码示例

代码示例来源:origin: org.glassfish.tyrus/tyrus-container-grizzly-client

@Override
  protected void notifyHandshakeFailed(Connection connection, Throwable t) {
    sslHandshakeFuture.setFailure(t);
    connection.terminateSilently();
  }
};

代码示例来源:origin: eclipse-ee4j/tyrus

@Override
  protected void notifyHandshakeFailed(Connection connection, Throwable t) {
    sslHandshakeFuture.setFailure(t);
    connection.terminateSilently();
  }
};

代码示例来源:origin: io.gatling/async-http-client

public void verify() {
    final SSLSession session = SSLUtils.getSSLEngine(connection).getSession();
    if (LOGGER.isDebugEnabled()) {
      LOGGER.debug("SSL Handshake onComplete: session = {}, id = {}, isValid = {}, host = {}",
          session.toString(), Base64.encode(session.getId()), session.isValid(), host);
    }
    if (!verifier.verify(host, session)) {
      connection.terminateSilently();
      IOException e = new ConnectException("Host name verification failed for host " + host);
      delegate.failed(e);
    }
  }
}

代码示例来源:origin: javaee/grizzly

transport.getSelectionKeyHandler().
    getConnectionForKey(selectionKey);
connection.terminateSilently();

代码示例来源:origin: javaee/grizzly

transport.getSelectionKeyHandler().
    getConnectionForKey(selectionKey);
connection.terminateSilently();

代码示例来源:origin: javaee/grizzly

transport.getSelectionKeyHandler().
    getConnectionForKey(selectionKey);
connection.terminateSilently();

代码示例来源:origin: javaee/grizzly

transport.getSelectionKeyHandler().
    getConnectionForKey(selectionKey);
connection.terminateSilently();

代码示例来源:origin: org.mule.glassfish.grizzly/grizzly-framework

transport.getSelectionKeyHandler().
    getConnectionForKey(selectionKey);
connection.terminateSilently();

代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server

transport.getSelectionKeyHandler().
    getConnectionForKey(selectionKey);
connection.terminateSilently();

代码示例来源:origin: javaee/grizzly

transport.getSelectionKeyHandler().
    getConnectionForKey(selectionKey);
connection.terminateSilently();

代码示例来源:origin: javaee/grizzly

transport.getSelectionKeyHandler().
    getConnectionForKey(selectionKey);
connection.terminateSilently();

代码示例来源:origin: javaee/grizzly

transport.getSelectionKeyHandler().
    getConnectionForKey(selectionKey);
connection.terminateSilently();

代码示例来源:origin: javaee/grizzly

transport.getSelectionKeyHandler().
    getConnectionForKey(selectionKey);
connection.terminateSilently();

代码示例来源:origin: org.glassfish.grizzly/grizzly-core

transport.getSelectionKeyHandler().
    getConnectionForKey(selectionKey);
connection.terminateSilently();

代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server-core

transport.getSelectionKeyHandler().
    getConnectionForKey(selectionKey);
connection.terminateSilently();

相关文章