Interface DelayBuilderStep<BUILDER extends BuilderStep>
- All Superinterfaces:
BuilderStep
- All Known Subinterfaces:
ExceptionResponseActionBuilder,ObjectResponseActionBuilder<RespT>
- All Known Implementing Classes:
ExceptionResponseActionBuilderImpl,ObjectResponseActionBuilderImpl
- Author:
- Fadelis
-
Method Summary
Modifier and TypeMethodDescriptionConfigure aDelayfor the response action.default BUILDERwithFixedDelay(long milliseconds) Configures a fixedDelayin milliseconds for the response action.default BUILDERwithFixedDelay(Duration duration) default BUILDERwithRandomDelay(long maxMilliseconds) Configures a randomDelaybetween 0 and given maxMilliseconds for the response action.default BUILDERwithRandomDelay(long minMilliseconds, long maxMilliseconds) Configures a randomDelaybetween given minMilliseconds and maxMilliseconds bounds in milliseconds for the response action.default BUILDERwithRandomDelay(Duration maxDuration) default BUILDERwithRandomDelay(Duration minDuration, Duration maxDuration)
-
Method Details
-
withDelay
Configure a
Delayfor the response action.Delay for
ResponseActionis additive, meaning that it will trigger after previousResponseActionhas finished. -
withFixedDelay
Configures a fixedDelayin milliseconds for the response action.Delay for
ResponseActionis additive, meaning that it will trigger after previousResponseActionhas finished. -
withFixedDelay
Configures a fixedDelaywith providedDurationfor the response action.Delay for
ResponseActionis additive, meaning that it will trigger after previousResponseActionhas finished. -
withRandomDelay
Configures a randomDelaybetween given minMilliseconds and maxMilliseconds bounds in milliseconds for the response action.Delay for
ResponseActionis additive, meaning that it will trigger after previousResponseActionhas finished. -
withRandomDelay
Configures a randomDelaybetween given minDurationand maxDurationbounds in milliseconds for the response action.Delay for
ResponseActionis additive, meaning that it will trigger after previousResponseActionhas finished. -
withRandomDelay
Configures a randomDelaybetween 0 and given maxMilliseconds for the response action.Delay for
ResponseActionis additive, meaning that it will trigger after previousResponseActionhas finished. -
withRandomDelay
Configures a randomDelaybetween 0 and given maxDurationfor the response action.Delay for
ResponseActionis additive, meaning that it will trigger after previousResponseActionhas finished.
-