object DelayStrategy
- Source
- DelayStrategy.scala
- Alphabetic
- By Inheritance
- DelayStrategy
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fixedDelay[T](delay: Duration): DelayStrategy[T]
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
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def linearIncreasingDelay[T](increaseStep: Duration, needsIncrease: (T) => Boolean, initialDelay: Duration, maxDelay: Duration): 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
- def linearIncreasingDelay[T](increaseStep: Duration, needsIncrease: (T) => Boolean, initialDelay: Duration): 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
. 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
- def linearIncreasingDelay[T](increaseStep: Duration, needsIncrease: (T) => Boolean): DelayStrategy[T]
Strategy with linear increasing delay.
Strategy with linear increasing delay. It starts with zero delay for each element, increases by
increaseStep
every time whenneedsIncrease
returnstrue
, whenneedsIncrease
returnsfalse
it resets toinitialDelay
.- increaseStep
step by which delay is increased
- needsIncrease
if
true
delay increases, iffalse
delay resets toinitialDelay
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])