private static final class GlobalChannelTrafficCounter.MixedTrafficMonitoringTask extends java.lang.Object implements TimerTask
| Modifier and Type | Field and Description |
|---|---|
private TrafficCounter |
counter
The associated TrafficCounter
|
private GlobalChannelTrafficShapingHandler |
trafficShapingHandler1
The associated TrafficShapingHandler
|
| Constructor and Description |
|---|
MixedTrafficMonitoringTask(GlobalChannelTrafficShapingHandler trafficShapingHandler,
TrafficCounter counter) |
| Modifier and Type | Method and Description |
|---|---|
void |
run(Timeout timeout)
Executed after the delay specified with
Timer.newTimeout(TimerTask, long, TimeUnit). |
private final GlobalChannelTrafficShapingHandler trafficShapingHandler1
private final TrafficCounter counter
MixedTrafficMonitoringTask(GlobalChannelTrafficShapingHandler trafficShapingHandler, TrafficCounter counter)
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.public void run(Timeout timeout) throws java.lang.Exception
TimerTaskTimer.newTimeout(TimerTask, long, TimeUnit).