Class ThroughputCounter

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelDuplexHandler
io.netty.handler.traffic.AbstractTrafficShapingHandler
io.netty.handler.traffic.GlobalTrafficShapingHandler
org.graylog2.plugin.inputs.util.ThroughputCounter
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler, io.netty.channel.ChannelOutboundHandler

@Sharable public class ThroughputCounter extends io.netty.handler.traffic.GlobalTrafficShapingHandler
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler

    io.netty.channel.ChannelHandler.Sharable
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final String
     
    static final String
     

    Fields inherited from class io.netty.handler.traffic.AbstractTrafficShapingHandler

    checkInterval, DEFAULT_CHECK_INTERVAL, DEFAULT_MAX_TIME, maxTime, trafficCounter
  • Constructor Summary

    Constructors
    Constructor
    Description
    ThroughputCounter(io.netty.channel.EventLoopGroup executor)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Map<String,com.codahale.metrics.Gauge<Long>>
     

    Methods inherited from class io.netty.handler.traffic.GlobalTrafficShapingHandler

    getMaxGlobalWriteSize, handlerAdded, handlerRemoved, queuesSize, release, setMaxGlobalWriteSize, userDefinedWritabilityIndex

    Methods inherited from class io.netty.handler.traffic.AbstractTrafficShapingHandler

    calculateSize, channelRead, channelRegistered, configure, configure, configure, doAccounting, getCheckInterval, getMaxTimeWait, getMaxWriteDelay, getMaxWriteSize, getReadLimit, getWriteLimit, isHandlerActive, read, setCheckInterval, setMaxTimeWait, setMaxWriteDelay, setMaxWriteSize, setReadLimit, setWriteLimit, submitWrite, toString, trafficCounter, write

    Methods inherited from class io.netty.channel.ChannelDuplexHandler

    bind, close, connect, deregister, disconnect, flush

    Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter

    channelActive, channelInactive, channelReadComplete, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered

    Methods inherited from class io.netty.channel.ChannelHandlerAdapter

    ensureNotSharable, isSharable

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • ThroughputCounter

      @Inject public ThroughputCounter(io.netty.channel.EventLoopGroup executor)
  • Method Details

    • gauges

      public Map<String,com.codahale.metrics.Gauge<Long>> gauges()