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
Class to implement monitoring at fix delay
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TrafficCounter
The associated TrafficCounterprivate final AbstractTrafficShapingHandler
The associated TrafficShapingHandler -
Constructor Summary
ConstructorsConstructorDescriptionTrafficMonitoringTask
(AbstractTrafficShapingHandler trafficShapingHandler, TrafficCounter counter) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Executed after the delay specified withTimer.newTimeout(TimerTask, long, TimeUnit)
.
-
Field Details
-
trafficShapingHandler1
The associated TrafficShapingHandler -
counter
The associated TrafficCounter
-
-
Constructor Details
-
TrafficMonitoringTask
TrafficMonitoringTask(AbstractTrafficShapingHandler trafficShapingHandler, TrafficCounter counter)
-
-
Method Details
-
run
Description copied from interface:TimerTask
Executed after the delay specified withTimer.newTimeout(TimerTask, long, TimeUnit)
.
-