@Override public void channelActive(ChannelHandlerContext ctx) { channelGroup.add(ctx.channel()); ctx.fireChannelActive(); }
@Override public ChannelHandlerContext fireChannelActive() { ctx.fireChannelActive(); return this; }
/** * Calls {@link ChannelHandlerContext#fireChannelActive()} to forward * to the next {@link ChannelInboundHandler} in the {@link ChannelPipeline}. * * Sub-classes may override this method to change behavior. */ @Override public void channelActive(ChannelHandlerContext ctx) throws Exception { ctx.fireChannelActive(); }
@Override public final void channelActive(ChannelHandlerContext ctx) throws Exception { sendInitialMessage(ctx); ctx.fireChannelActive(); }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { ctx.fireChannelActive(); readIfIsAutoRead(); }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { if (!handleNewChannel(ctx)) { throw new IllegalStateException("cannot determine to accept or reject a channel: " + ctx.channel()); } else { ctx.fireChannelActive(); } }
@Override public void channelActive(ChannelHandlerContext ctx) { channelGroup.add(ctx.channel()); ctx.fireChannelActive(); }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { if (logger.isEnabled(internalLevel)) { logger.log(internalLevel, format(ctx, "ACTIVE")); } ctx.fireChannelActive(); }
/** * Issues an initial TLS handshake once connected when used in client-mode */ @Override public void channelActive(final ChannelHandlerContext ctx) throws Exception { if (!startTls) { if (engine.getUseClientMode()) { // Begin the initial handshake. handshake(null); } else { applyHandshakeTimeout(null); } } ctx.fireChannelActive(); }