Class GatewayThrottler


  • public class GatewayThrottler
    extends Object
    When the gateways says it can not handle more load, we should send less load. That is the responsibility of this component
    Author:
    dybis
    • Constructor Detail

      • GatewayThrottler

        public GatewayThrottler​(long maxSleepTimeMs)
    • Method Detail

      • handleCall

        public void handleCall​(int transientErrors)
      • sleepMs

        protected void sleepMs​(long sleepTime)
      • distribute

        public int distribute​(int expected)