Interface DelayBuilderStep<BUILDER extends BuilderStep>

All Superinterfaces:
BuilderStep
All Known Subinterfaces:
ExceptionResponseActionBuilder, ObjectResponseActionBuilder<RespT>
All Known Implementing Classes:
ExceptionResponseActionBuilderImpl, ObjectResponseActionBuilderImpl

public interface DelayBuilderStep<BUILDER extends BuilderStep> extends BuilderStep
Author:
Fadelis
  • Method Details

    • withDelay

      BUILDER withDelay(@Nonnull Delay delay)

      Configure a Delay for the response action.

      Delay for ResponseAction is additive, meaning that it will trigger after previous ResponseAction has finished.

    • withFixedDelay

      default BUILDER withFixedDelay(long milliseconds)
      Configures a fixed Delay in milliseconds for the response action.

      Delay for ResponseAction is additive, meaning that it will trigger after previous ResponseAction has finished.

    • withFixedDelay

      default BUILDER withFixedDelay(Duration duration)
      Configures a fixed Delay with provided Duration for the response action.

      Delay for ResponseAction is additive, meaning that it will trigger after previous ResponseAction has finished.

    • withRandomDelay

      default BUILDER withRandomDelay(long minMilliseconds, long maxMilliseconds)
      Configures a random Delay between given minMilliseconds and maxMilliseconds bounds in milliseconds for the response action.

      Delay for ResponseAction is additive, meaning that it will trigger after previous ResponseAction has finished.

    • withRandomDelay

      default BUILDER withRandomDelay(Duration minDuration, Duration maxDuration)
      Configures a random Delay between given min Duration and max Duration bounds in milliseconds for the response action.

      Delay for ResponseAction is additive, meaning that it will trigger after previous ResponseAction has finished.

    • withRandomDelay

      default BUILDER withRandomDelay(long maxMilliseconds)
      Configures a random Delay between 0 and given maxMilliseconds for the response action.

      Delay for ResponseAction is additive, meaning that it will trigger after previous ResponseAction has finished.

    • withRandomDelay

      default BUILDER withRandomDelay(Duration maxDuration)
      Configures a random Delay between 0 and given max Duration for the response action.

      Delay for ResponseAction is additive, meaning that it will trigger after previous ResponseAction has finished.