DelayStrategy

org.apache.pekko.stream.javadsl.DelayStrategy
See theDelayStrategy companion object
trait DelayStrategy[T]

Allows to manage delay and can be stateful to compute delay for any sequence of elements, all elements go through nextDelay() updating state and returning delay for each element

Attributes

Companion
object
Source
DelayStrategy.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def nextDelay(elem: T): Duration

Returns delay for ongoing element, Duration.Zero means passing without delay

Returns delay for ongoing element, Duration.Zero means passing without delay

Attributes

Source
DelayStrategy.scala