Class GlobalChannelTrafficCounter.MixedTrafficMonitoringTask
java.lang.Object
io.netty.handler.traffic.GlobalChannelTrafficCounter.MixedTrafficMonitoringTask
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
GlobalChannelTrafficCounter
private static class GlobalChannelTrafficCounter.MixedTrafficMonitoringTask
extends java.lang.Object
implements java.lang.Runnable
Class to implement monitoring at fix delay.
This version is Mixed in the way it mixes Global and Channel counters.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TrafficCounterThe associated TrafficCounterprivate final GlobalChannelTrafficShapingHandlerThe associated TrafficShapingHandler -
Constructor Summary
ConstructorsConstructorDescriptionMixedTrafficMonitoringTask(GlobalChannelTrafficShapingHandler trafficShapingHandler, TrafficCounter counter) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
trafficShapingHandler1
The associated TrafficShapingHandler -
counter
The associated TrafficCounter
-
-
Constructor Details
-
MixedTrafficMonitoringTask
MixedTrafficMonitoringTask(GlobalChannelTrafficShapingHandler trafficShapingHandler, TrafficCounter counter) - Parameters:
trafficShapingHandler- The parent handler to which this task needs to callback to for accounting.counter- The parent TrafficCounter that we need to reset the statistics for.
-
-
Method Details
-
run
public void run()- Specified by:
runin interfacejava.lang.Runnable
-