private void decrementCurrentRequestsIfOneInflight(ChannelHandlerContext ctx) { if (ctx.channel().attr(ATTR_REQ_INFLIGHT).getAndRemove() != null) { currentRequestsGauge.set(currentRequests.decrementAndGet()); } } }
private void decrementCurrentRequestsIfOneInflight(ChannelHandlerContext ctx) { if (ctx.channel().attr(ATTR_REQ_INFLIGHT).getAndRemove() != null) { groupMetrics.getForCurrentEventLoop().decrementCurrentRequests(); } } }
private void decrementCurrentRequestsIfOneInflight(ChannelHandlerContext ctx) { if (ctx.channel().attr(ATTR_REQ_INFLIGHT).getAndRemove() != null) { currentRequestsGauge.set(currentRequests.decrementAndGet()); } } }
private void decrementCurrentRequestsIfOneInflight(ChannelHandlerContext ctx) { if (ctx.channel().attr(ATTR_REQ_INFLIGHT).getAndRemove() != null) { groupMetrics.getForCurrentEventLoop().decrementCurrentRequests(); } } }
private void decrementCurrentRequestsIfOneInflight(ChannelHandlerContext ctx) { if (ctx.channel().attr(ATTR_REQ_INFLIGHT).getAndRemove() != null) { currentRequestsGauge.set(currentRequests.decrementAndGet()); } } }
@Override public void channelInactive(ChannelHandlerContext ctx) { Channel channel = ctx.channel(); Session session = channel.attr(ApolloHandler.SESSION_KEY).getAndRemove(); if (session != null) { session.destroy(); } logger.fine("Channel disconnected: " + channel); channel.close(); }
@Override public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception { super.write(ctx, msg, promise); if (msg instanceof HttpMessage) { Subject subject = ctx.channel().attr(ATTR_SUBJECT).getAndRemove(); if (subject != null) { subject.logout(); } } }
private void decrementCurrentRequestsIfOneInflight(ChannelHandlerContext ctx) { if (ctx.channel().attr(ATTR_REQ_INFLIGHT).getAndRemove() != null) { groupMetrics.getForCurrentEventLoop().decrementCurrentRequests(); } } }
@Override public void onChannelInactive(AttributeMap attMap) { C connection = attMap.attr(this.connection).getAndRemove(); if (connection != null) { connection.close(); } }
@Override public void onChannelInactive(AttributeMap attMap) { C connection = attMap.attr(this.connection).getAndRemove(); if (connection != null) { connection.close(); } }