Example usage for io.netty.handler.traffic GlobalTrafficShapingHandler subclass-usage

List of usage examples for io.netty.handler.traffic GlobalTrafficShapingHandler subclass-usage

Introduction

In this page you can find the example usage for io.netty.handler.traffic GlobalTrafficShapingHandler subclass-usage.

Usage

From source file hivemall.mix.metrics.ThroughputCounter.java

public final class ThroughputCounter extends GlobalTrafficShapingHandler {
    private static final Log logger = LogFactory.getLog(ThroughputCounter.class);

    @Nonnull
    private final MixServerMetrics metrics;

From source file org.graylog2.plugin.inputs.util.ThroughputCounter.java

@ChannelHandler.Sharable
public class ThroughputCounter extends GlobalTrafficShapingHandler {
    public static final String READ_BYTES_1_SEC = "read_bytes_1sec";
    public static final String WRITTEN_BYTES_1_SEC = "written_bytes_1sec";
    public static final String READ_BYTES_TOTAL = "read_bytes_total";
    public static final String WRITTEN_BYTES_TOTAL = "written_bytes_total";