private void incrementCurrentRequestsInFlight(ChannelHandlerContext ctx) { groupMetrics.getForCurrentEventLoop().incrementCurrentRequests(); ctx.channel().attr(ATTR_REQ_INFLIGHT).set(INFLIGHT); }
private void decrementCurrentRequestsIfOneInflight(ChannelHandlerContext ctx) { if (ctx.channel().attr(ATTR_REQ_INFLIGHT).getAndRemove() != null) { groupMetrics.getForCurrentEventLoop().decrementCurrentRequests(); } } }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { try { super.channelInactive(ctx); } finally { groupMetrics.getForCurrentEventLoop().decrementCurrentConnections(); } } }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { groupMetrics.getForCurrentEventLoop().incrementCurrentConnections(); super.channelActive(ctx); }
private void incrementCurrentRequestsInFlight(ChannelHandlerContext ctx) { groupMetrics.getForCurrentEventLoop().incrementCurrentRequests(); ctx.channel().attr(ATTR_REQ_INFLIGHT).set(INFLIGHT); }
private void decrementCurrentRequestsIfOneInflight(ChannelHandlerContext ctx) { if (ctx.channel().attr(ATTR_REQ_INFLIGHT).getAndRemove() != null) { groupMetrics.getForCurrentEventLoop().decrementCurrentRequests(); } } }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { groupMetrics.getForCurrentEventLoop().incrementCurrentConnections(); super.channelActive(ctx); }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { try { super.channelInactive(ctx); } finally { groupMetrics.getForCurrentEventLoop().decrementCurrentConnections(); } } }
private void incrementCurrentRequestsInFlight(ChannelHandlerContext ctx) { groupMetrics.getForCurrentEventLoop().incrementCurrentRequests(); ctx.channel().attr(ATTR_REQ_INFLIGHT).set(INFLIGHT); }
private void decrementCurrentRequestsIfOneInflight(ChannelHandlerContext ctx) { if (ctx.channel().attr(ATTR_REQ_INFLIGHT).getAndRemove() != null) { groupMetrics.getForCurrentEventLoop().decrementCurrentRequests(); } } }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { groupMetrics.getForCurrentEventLoop().incrementCurrentConnections(); super.channelActive(ctx); }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { try { super.channelInactive(ctx); } finally { groupMetrics.getForCurrentEventLoop().decrementCurrentConnections(); } } }