Class TrafficShapingRateLimitAdjuster

  • All Implemented Interfaces:
    Managed, Runnable

    public class TrafficShapingRateLimitAdjuster
    extends TimerTask
    implements Managed
    Experimental: use automatic traffic shaping (set rate limiter based on recently received per second rates, heavily biased towards last 5 minutes)
    Author:
    [email protected].
    • Constructor Detail

      • TrafficShapingRateLimitAdjuster

        public TrafficShapingRateLimitAdjuster​(EntityPropertiesFactory entityProps,
                                               int windowSeconds,
                                               double headroom)
        Parameters:
        entityProps - entity properties factory (to control rate limiters)
        windowSeconds - size of the moving time window to average point rate
        headroom - headroom multiplier
    • Method Detail

      • start

        public void start()
        Description copied from interface: Managed
        Starts the process.
        Specified by:
        start in interface Managed
      • stop

        public void stop()
        Description copied from interface: Managed
        Stops the process.
        Specified by:
        stop in interface Managed