コード例 #1
0
ファイル: Server.java プロジェクト: Analect/neo4j
  @Override
  public void channelClosed(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception {
    super.channelClosed(ctx, e);

    if (!ctx.getChannel().isOpen()) {
      tryToFinishOffChannel(ctx.getChannel());
    }

    channelGroup.remove(e.getChannel());
  }
コード例 #2
0
 @Override
 public void channelClosed(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception {
   channelGroup.remove(ctx.getChannel());
 }
コード例 #3
0
 public void channelDisconnected(ChannelHandlerContext ctx, ChannelStateEvent e) {
   // Unregister the channel from the global channel list
   // so the channel does not receive messages anymore.
   channels.remove(e.getChannel());
 }
コード例 #4
0
ファイル: Server.java プロジェクト: matif84/storm
 /** @param channel channel to close */
 public void closeChannel(Channel channel) {
   channel.close().awaitUninterruptibly();
   allChannels.remove(channel);
 }