@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { if (sslInitDone) { super.channelActive(ctx); } }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { if (sslInitDone) { super.channelActive(ctx); } }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { // Store a ref to the count of current inflight requests onto this channel. So that // other code can query it using getInflightRequestCountFromChannel(). ctx.channel().attr(ATTR_CURRENT_REQS).set(currentRequests); super.channelActive(ctx); }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { super.channelActive(ctx); LOGGER.info("channel active for ServerProxyHandler at :[{}]", ctx.channel()); }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { LOGGER.info("Client Channel to server ({}) (id = {}) is active.", _server, _connId); setChannel(ctx.channel()); super.channelActive(ctx); }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { connections.incrementAndGet(); totalConnections.incrementAndGet(); ctx.channel().closeFuture().addListener(f -> connections.decrementAndGet()); super.channelActive(ctx); }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { super.channelActive(ctx); channelActivePromise.setSuccess(ctx.channel()); }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { currentConnections.incrementAndGet(); totalConnections.increment(); ctx.channel().attr(ATTR_CURRENT_CONNS).set(currentConnections); super.channelActive(ctx); }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { passport(ctx).add(PassportState.ORIGIN_CH_ACTIVE); super.channelActive(ctx); }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { passport(ctx).add(PassportState.SERVER_CH_ACTIVE); super.channelActive(ctx); }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { channels.add(ctx.channel()); super.channelActive(ctx); }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { if (maxConnections > 0) { int currentCount = connections.getAndIncrement(); if (currentCount + 1 > maxConnections) { LOG.warn("Throttling incoming connection as above configured max connections threshold of " + maxConnections); Channel channel = ctx.channel(); channel.attr(ATTR_CH_THROTTLED).set(Boolean.TRUE); CurrentPassport.fromChannel(channel).add(PassportState.SERVER_CH_THROTTLING); channel.close(); ctx.pipeline().fireUserEventTriggered(CONNECTION_THROTTLED_EVENT); } } super.channelActive(ctx); }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { groupMetrics.getForCurrentEventLoop().incrementCurrentConnections(); super.channelActive(ctx); }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { // Store a ref to the count of current inflight requests onto this channel. So that // other code can query it using getInflightRequestCountFromChannel(). ctx.channel().attr(ATTR_CURRENT_REQS).set(currentRequests); super.channelActive(ctx); }
@Override public void channelActive(final ChannelHandlerContext ctx) throws Exception { SchedulerKey key = new SchedulerKey(Type.PING_TIMEOUT, ctx.channel()); disconnectScheduler.schedule(key, new Runnable() { @Override public void run() { ctx.channel().close(); log.debug("Client with ip {} opened channel but doesn't send any data! Channel closed!", ctx.channel().remoteAddress()); } }, configuration.getFirstDataTimeout(), TimeUnit.MILLISECONDS); super.channelActive(ctx); }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { passport(ctx).add(PassportState.ORIGIN_CH_ACTIVE); super.channelActive(ctx); }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { passport(ctx).add(PassportState.SERVER_CH_ACTIVE); super.channelActive(ctx); }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { currentConnections.incrementAndGet(); totalConnections.increment(); ctx.channel().attr(ATTR_CURRENT_CONNS).set(currentConnections); super.channelActive(ctx); }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { if (maxConnections > 0) { int currentCount = connections.getAndIncrement(); if (currentCount + 1 > maxConnections) { LOG.warn("Throttling incoming connection as above configured max connections threshold of " + maxConnections); Channel channel = ctx.channel(); channel.attr(ATTR_CH_THROTTLED).set(Boolean.TRUE); CurrentPassport.fromChannel(channel).add(PassportState.SERVER_CH_THROTTLING); channel.close(); ctx.pipeline().fireUserEventTriggered(CONNECTION_THROTTLED_EVENT); } } super.channelActive(ctx); }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { groupMetrics.getForCurrentEventLoop().incrementCurrentConnections(); super.channelActive(ctx); }