object DelayStrategy
- Source
- DelayStrategy.scala
- Alphabetic
- By Inheritance
- DelayStrategy
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- def fixedDelay(delay: FiniteDuration): DelayStrategy[Any]
Fixed delay strategy, always returns constant delay for any element.
Fixed delay strategy, always returns constant delay for any element.
- delay
value of the delay
- def linearIncreasingDelay[T](increaseStep: FiniteDuration, needsIncrease: (T) => Boolean, initialDelay: FiniteDuration = Duration.Zero, maxDelay: Duration = Duration.Inf): DelayStrategy[T]
Strategy with linear increasing delay.
Strategy with linear increasing delay. It starts with
initialDelay
for each element, increases byincreaseStep
every time whenneedsIncrease
returnstrue
up tomaxDelay
, whenneedsIncrease
returnsfalse
it resets toinitialDelay
.- increaseStep
step by which delay is increased
- needsIncrease
if
true
delay increases, iffalse
delay resets toinitialDelay
- initialDelay
initial delay for each of elements
- maxDelay
limits maximum delay