Packages

object DelayStrategy

Source
DelayStrategy.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DelayStrategy
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. 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

  2. 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 by increaseStep every time when needsIncrease returns true up to maxDelay, when needsIncrease returns false it resets to initialDelay.

    increaseStep

    step by which delay is increased

    needsIncrease

    if true delay increases, if false delay resets to initialDelay

    initialDelay

    initial delay for each of elements

    maxDelay

    limits maximum delay