RestartSettings

org.apache.pekko.stream.RestartSettings
See theRestartSettings companion object
final class RestartSettings

Attributes

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

Members list

Value members

Concrete methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
RestartSettings.scala

Attributes

Source
RestartSettings.scala

Scala API: the exponential back-off is capped to this duration

Scala API: the exponential back-off is capped to this duration

Attributes

Source
RestartSettings.scala
def withMaxBackoff(value: Duration): RestartSettings

Java API: the exponential back-off is capped to this duration

Java API: the exponential back-off is capped to this duration

Attributes

Source
RestartSettings.scala

Scala API: The amount of restarts is capped to count within a timeframe of within

Scala API: The amount of restarts is capped to count within a timeframe of within

Attributes

Source
RestartSettings.scala
def withMaxRestarts(count: Int, within: Duration): RestartSettings

Java API: The amount of restarts is capped to count within a timeframe of within

Java API: The amount of restarts is capped to count within a timeframe of within

Attributes

Source
RestartSettings.scala

Scala API: minimum (initial) duration until the child actor will started again, if it is terminated

Scala API: minimum (initial) duration until the child actor will started again, if it is terminated

Attributes

Source
RestartSettings.scala
def withMinBackoff(value: Duration): RestartSettings

Java API: minimum (initial) duration until the child actor will started again, if it is terminated

Java API: minimum (initial) duration until the child actor will started again, if it is terminated

Attributes

Source
RestartSettings.scala

After calculation of the exponential back-off an additional random delay based on this factor is added e.g. 0.2 adds up to 20% delay. In order to skip this additional delay pass in 0

After calculation of the exponential back-off an additional random delay based on this factor is added e.g. 0.2 adds up to 20% delay. In order to skip this additional delay pass in 0

Attributes

Source
RestartSettings.scala
def withRestartOn(restartOn: Predicate[Throwable]): RestartSettings

Decides whether the failure should restart the stream or make the surrounding stream fail

Decides whether the failure should restart the stream or make the surrounding stream fail

Attributes

Source
RestartSettings.scala