Package org.jboss.netty.handler.traffic
Class TrafficCounter.TrafficMonitoringTask
- java.lang.Object
-
- org.jboss.netty.handler.traffic.TrafficCounter.TrafficMonitoringTask
-
- All Implemented Interfaces:
TimerTask
- Enclosing class:
- TrafficCounter
private static final class TrafficCounter.TrafficMonitoringTask extends java.lang.Object implements TimerTask
Class to implement monitoring at fix delay
-
-
Field Summary
Fields Modifier and Type Field Description private TrafficCounter
counter
The associated TrafficCounterprivate AbstractTrafficShapingHandler
trafficShapingHandler1
The associated TrafficShapingHandler
-
Constructor Summary
Constructors Constructor Description TrafficMonitoringTask(AbstractTrafficShapingHandler 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 AbstractTrafficShapingHandler trafficShapingHandler1
The associated TrafficShapingHandler
-
counter
private final TrafficCounter counter
The associated TrafficCounter
-
-
Constructor Detail
-
TrafficMonitoringTask
TrafficMonitoringTask(AbstractTrafficShapingHandler trafficShapingHandler, TrafficCounter counter)
-
-
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)
.
-
-