@Override
  public void channelActive(final ChannelHandlerContext ctx) throws Exception {
    if (this.ctx == null) {
      this.ctx = ctx;
    }

    super.channelActive(ctx);
  }
Ejemplo n.º 2
0
 @Override
 public void channelActive(ChannelHandlerContext ctx) throws Exception {
   super.channelActive(ctx);
   this.ctx = ctx;
 }
Ejemplo n.º 3
0
 @Override
 public void channelActive(ChannelHandlerContext ctx) throws Exception {
   allChannels.add(ctx.channel());
   super.channelActive(ctx);
 }
  @Override
  public void channelActive(@NotNull ChannelHandlerContext context) throws Exception {
    clientChannels.add(context.channel());

    super.channelActive(context);
  }