org.jboss.netty.channel.Channels.disconnect()方法的使用及代码示例

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

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

Channels.disconnect介绍

[英]Sends a "disconnect" request to the last ChannelDownstreamHandler in the ChannelPipeline of the specified Channel.
[中]将“断开连接”请求发送到指定通道的ChannelPipeline中的最后一个ChannelDownstreamHandler。

代码示例

代码示例来源:origin: io.netty/netty

public ChannelFuture disconnect() {
  return Channels.disconnect(this);
}

代码示例来源:origin: kaazing/gateway

public ChannelFuture disconnect() {
  return Channels.disconnect(this);
}

代码示例来源:origin: k3po/k3po

@Override
protected void invokeCommand(ChannelHandlerContext ctx) throws Exception {
  ChannelFuture handlerFuture = getHandlerFuture();
  Channels.disconnect(ctx, handlerFuture);
}

代码示例来源:origin: xose/netty-xmpp

@Override
protected void triggerShutdown() {
  if (channel != null && channel.isConnected()) {
    Channels.disconnect(channel);
  }
}

代码示例来源:origin: xose/netty-xmpp

Channels.disconnect(ctx.getChannel());
return;

代码示例来源:origin: com.thimbleware.jmemcached/jmemcached-core

break;
case QUIT:
  Channels.disconnect(channel);

代码示例来源:origin: org.hbase/asynchbase

Channels.disconnect(chancopy);   // ... this is going to set it to null.

相关文章