Package org.jboss.netty.handler.traffic
Class GlobalChannelTrafficCounter.MixedTrafficMonitoringTask
- java.lang.Object
-
- org.jboss.netty.handler.traffic.GlobalChannelTrafficCounter.MixedTrafficMonitoringTask
-
- All Implemented Interfaces:
TimerTask
- Enclosing class:
- GlobalChannelTrafficCounter
private static final class GlobalChannelTrafficCounter.MixedTrafficMonitoringTask extends java.lang.Object implements TimerTask
Class to implement monitoring at fix delay. This version is Mixed in the way it mixes Global and Channel counters.
-
-
Field Summary
Fields Modifier and Type Field Description private TrafficCounter
counter
The associated TrafficCounterprivate GlobalChannelTrafficShapingHandler
trafficShapingHandler1
The associated TrafficShapingHandler
-
Constructor Summary
Constructors Constructor Description MixedTrafficMonitoringTask(GlobalChannelTrafficShapingHandler trafficShapingHandler, TrafficCounter counter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run(Timeout timeout)
Executed after the delay specified withTimer.newTimeout(TimerTask, long, TimeUnit)
.
-
-
-
Field Detail
-
trafficShapingHandler1
private final GlobalChannelTrafficShapingHandler trafficShapingHandler1
The associated TrafficShapingHandler
-
counter
private final TrafficCounter counter
The associated TrafficCounter
-
-
Constructor Detail
-
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 Detail
-
run
public void run(Timeout timeout) throws java.lang.Exception
Description copied from interface:TimerTask
Executed after the delay specified withTimer.newTimeout(TimerTask, long, TimeUnit)
.
-
-