Interface Delay
public interface Delay
Functional interface for a delay in milliseconds used for
ResponseAction.- Author:
- Fadelis
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidTrigger configured delay for the response action.static DelayfixedDelay(long milliseconds) FixedDelayin milliseconds.longDefines delay value in milliseconds.static DelayrandomDelay(long minMilliseconds, long maxMilliseconds) Random delay between given minMilliseconds and maxMilliseconds bounds.
-
Method Details
-
inMilliseconds
long inMilliseconds()Defines delay value in milliseconds. -
fixedDelay
FixedDelayin milliseconds. -
randomDelay
Random delay between given minMilliseconds and maxMilliseconds bounds. -
delayAction
default void delayAction()Trigger configured delay for the response action.
-