Interface Delay


public interface Delay
Functional interface for a delay in milliseconds used for ResponseAction.
Author:
Fadelis
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Trigger configured delay for the response action.
    static Delay
    fixedDelay(long milliseconds)
    Fixed Delay in milliseconds.
    long
    Defines delay value in milliseconds.
    static Delay
    randomDelay(long minMilliseconds, long maxMilliseconds)
    Random delay between given minMilliseconds and maxMilliseconds bounds.
  • Method Details

    • inMilliseconds

      long inMilliseconds()
      Defines delay value in milliseconds.
    • fixedDelay

      static Delay fixedDelay(long milliseconds)
      Fixed Delay in milliseconds.
    • randomDelay

      static Delay randomDelay(long minMilliseconds, long maxMilliseconds)
      Random delay between given minMilliseconds and maxMilliseconds bounds.
    • delayAction

      default void delayAction()
      Trigger configured delay for the response action.