本文整理了Java中org.glassfish.grizzly.Connection.closeSilently()
方法的一些代码示例,展示了Connection.closeSilently()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Connection.closeSilently()
方法的具体详情如下:
包路径:org.glassfish.grizzly.Connection
类名称:Connection
方法名:closeSilently
[英]Gracefully close the Connection silently, no notification required on completion or failure.
[中]安静地优雅地关闭连接,完成或失败时无需通知。
代码示例来源:origin: com.ning/async-http-client
void closeConnection() {
connection.closeSilently();
}
代码示例来源:origin: javaee/grizzly
@Override
protected void onClosed() throws IOException {
connection.closeSilently();
}
}
代码示例来源:origin: javaee/grizzly
@Override
protected void onClosed() throws IOException {
connection.closeSilently();
}
}
代码示例来源:origin: javaee/grizzly
@Override
public void onError(final Context context, final Object description)
throws IOException {
context.getConnection().closeSilently();
}
}
代码示例来源:origin: javaee/grizzly
@Override
public void onError(final Context context, final Object description)
throws IOException {
context.getConnection().closeSilently();
}
}
代码示例来源:origin: javaee/grizzly
@Override
public boolean doWork(final KeepAliveContext context) {
KeepAlive.notifyProbesTimeout(keepAlive, context.connection);
context.connection.closeSilently();
return true;
}
代码示例来源:origin: javaee/grizzly
@Override
public void onError(final Context context, final Object description)
throws IOException {
context.getConnection().closeSilently();
}
}
代码示例来源:origin: javaee/grizzly
@Override
public void onError(final Context context, final Object description)
throws IOException {
context.getConnection().closeSilently();
}
}
代码示例来源:origin: javaee/grizzly
protected static void onWriteFailure(final Connection connection,
final AsyncWriteQueueRecord failedRecord, final Throwable e) {
failedRecord.notifyFailure(e);
connection.closeSilently();
}
代码示例来源:origin: javaee/grizzly
@Override
public boolean doWork(final KeepAliveContext context) {
KeepAlive.notifyProbesTimeout(keepAlive, context.connection);
context.connection.closeSilently();
return true;
}
代码示例来源:origin: javaee/grizzly
@Override
public void onError(final Context context, final Object description)
throws IOException {
context.getConnection().closeSilently();
}
}
代码示例来源:origin: javaee/grizzly
@Override
public void exceptionOccurred(final FilterChainContext ctx,
final Throwable error) {
final Connection connection = ctx.getConnection();
if (connection != null) {
connection.closeSilently();
}
}
}
代码示例来源:origin: javaee/grizzly
@Override
public boolean doWork(final Connection connection) {
if (handler != null) {
handler.onTimeout(connection);
}
connection.closeSilently();
return true;
}
代码示例来源:origin: javaee/grizzly
@Override
public void exceptionOccurred(final FilterChainContext ctx,
final Throwable error) {
final Connection connection = ctx.getConnection();
if (connection != null) {
connection.closeSilently();
}
}
}
代码示例来源:origin: javaee/grizzly
@Override
public boolean doWork(final Connection connection) {
if (handler != null) {
handler.onTimeout(connection);
}
connection.closeSilently();
return true;
}
代码示例来源:origin: javaee/grizzly
@Override
public void onError(final Context context, final Object description)
throws IOException {
context.getConnection().closeSilently();
}
}
代码示例来源:origin: javaee/grizzly
@Override
public void exceptionOccurred(final FilterChainContext ctx,
final Throwable error) {
final Connection connection = ctx.getConnection();
if (connection != null) {
connection.closeSilently();
}
}
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-core
@Override
public void exceptionOccurred(final FilterChainContext ctx,
final Throwable error) {
final Connection connection = ctx.getConnection();
if (connection != null) {
connection.closeSilently();
}
}
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server
@Override
public boolean doWork(final Connection connection) {
if (connection.isOpen()) {
if (handler != null) {
handler.onTimeout(connection);
}
connection.closeSilently();
}
return true;
}
代码示例来源:origin: javaee/grizzly
@Override
public boolean doWork(final Connection connection) {
if (connection.isOpen()) {
if (handler != null) {
handler.onTimeout(connection);
}
connection.closeSilently();
}
return true;
}
内容来源于网络,如有侵权,请联系作者删除!