All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tacitknowledge.slowlight.proxyserver.metrics.InThroughputHandler Maven / Gradle / Ivy

The newest version!
package com.tacitknowledge.slowlight.proxyserver.metrics;

import com.tacitknowledge.slowlight.proxyserver.config.HandlerConfig;
import io.netty.channel.ChannelHandlerContext;

/**
 * @author Pavel Sorocun ([email protected])
 */
public class InThroughputHandler extends ThroughputHandler
{
    public InThroughputHandler(final HandlerConfig handlerConfig)
    {
        super(handlerConfig);
    }

    @Override
    public void channelRead(final ChannelHandlerContext ctx, final  Object msg) throws Exception
    {
        updateThroughputMetric(msg);
        ctx.fireChannelRead(msg);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy