Class FakeDelayManager


  • @Component
    public class FakeDelayManager
    extends Object
    FakeDelayManager instances manage the response delay in the processing of fake (or "dummy") requests.
    • Method Detail

      • getJitteredFakeDelay

        public long getJitteredFakeDelay()
        Returns the current fake delay after applying random jitter.
      • updateFakeRequestDelay

        public void updateFakeRequestDelay​(long realRequestDuration)
        Updates the moving average for the request duration with the specified value.
      • getFakeDelayInSeconds

        public Double getFakeDelayInSeconds()
        Returns the current fake delay in seconds. Used for monitoring.