Class GlobalChannelTrafficCounter.MixedTrafficMonitoringTask
java.lang.Object
org.jboss.netty.handler.traffic.GlobalChannelTrafficCounter.MixedTrafficMonitoringTask
- All Implemented Interfaces:
TimerTask
- Enclosing class:
GlobalChannelTrafficCounter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TrafficCounterThe associated TrafficCounterprivate final GlobalChannelTrafficShapingHandlerThe associated TrafficShapingHandler -
Constructor Summary
ConstructorsConstructorDescriptionMixedTrafficMonitoringTask(GlobalChannelTrafficShapingHandler trafficShapingHandler, TrafficCounter counter) -
Method Summary
Modifier and TypeMethodDescriptionvoidExecuted after the delay specified withTimer.newTimeout(TimerTask, long, TimeUnit).
-
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
Description copied from interface:TimerTaskExecuted after the delay specified withTimer.newTimeout(TimerTask, long, TimeUnit).
-