Class GlobalChannelTrafficCounter

java.lang.Object
org.jboss.netty.handler.traffic.TrafficCounter
org.jboss.netty.handler.traffic.GlobalChannelTrafficCounter

public class GlobalChannelTrafficCounter extends TrafficCounter
Version for GlobalChannelTrafficShapingHandler. This TrafficCounter is the Global one, and its special property is to directly handle other channel's TrafficCounters. In particular, there are no scheduler for those channel's TrafficCounters because it is managed by this one.
  • Constructor Details

  • Method Details

    • start

      public void start()
      Start the monitoring process.
      Overrides:
      start in class TrafficCounter
    • stop

      public void stop()
      Stop the monitoring process.
      Overrides:
      stop in class TrafficCounter
    • resetCumulativeTime

      public void resetCumulativeTime()
      Description copied from class: TrafficCounter
      Reset both read and written cumulative bytes counters and the associated absolute time from System.currentTimeMillis().
      Overrides:
      resetCumulativeTime in class TrafficCounter