本文整理了Java中org.jboss.netty.channel.Channels.disconnect()
方法的一些代码示例,展示了Channels.disconnect()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Channels.disconnect()
方法的具体详情如下:
包路径:org.jboss.netty.channel.Channels
类名称: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.
内容来源于网络,如有侵权,请联系作者删除!