public void addToConnectionDeque(ChannelHandlerContext ctx, String url) {
        //getting an instance of ChannelTrafficShapingHandler for bandwidth monitoring
        ChannelTrafficShapingHandler ch = (ChannelTrafficShapingHandler) ctx.channel().pipeline().get("shaping-handler");
        ch.trafficCounter().stop();  //Stop the monitoring process

        if (logRequestQue.size() < 16) {
            logRequestQue.addLast(new RequestData(getClientIp(ctx), url, ch.trafficCounter().cumulativeWrittenBytes(),
                    ch.trafficCounter().cumulativeReadBytes(), ch.trafficCounter().lastWriteThroughput()));
        } else {
            logRequestQue.removeFirst();
            logRequestQue.addLast(new RequestData(getClientIp(ctx),url, ch.trafficCounter().cumulativeWrittenBytes(),
                    ch.trafficCounter().cumulativeReadBytes(), ch.trafficCounter().lastWriteThroughput()));
        }
        ch.trafficCounter().resetCumulativeTime(); //Reset both read and written cumulative bytes counters and the associated time for channel counter
    }