DelayStrategy

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

Allows to manage delay. Can be stateful to compute delay for any sequence of elements, as instances are not shared among running streams and all elements go through nextDelay(), updating state and returning delay for that 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): FiniteDuration

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