final class RestartSettings extends AnyRef
- Source
- RestartSettings.scala
- Alphabetic
- By Inheritance
- RestartSettings
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Value Members
- val logSettings: LogSettings
- val maxBackoff: FiniteDuration
- val maxRestarts: Int
- val maxRestartsWithin: FiniteDuration
- val minBackoff: FiniteDuration
- val randomFactor: Double
- val restartOn: (Throwable) => Boolean
- def toString(): String
- Definition Classes
- RestartSettings → AnyRef → Any
- def withLogSettings(newLogSettings: LogSettings): RestartSettings
- def withMaxBackoff(value: Duration): RestartSettings
Java API: the exponential back-off is capped to this duration
- def withMaxBackoff(value: FiniteDuration): RestartSettings
Scala API: the exponential back-off is capped to this duration
- def withMaxRestarts(count: Int, within: Duration): RestartSettings
Java API: The amount of restarts is capped to
count
within a timeframe ofwithin
- def withMaxRestarts(count: Int, within: FiniteDuration): RestartSettings
Scala API: The amount of restarts is capped to
count
within a timeframe ofwithin
- def withMinBackoff(value: Duration): RestartSettings
Java API: minimum (initial) duration until the child actor will started again, if it is terminated
- def withMinBackoff(value: FiniteDuration): RestartSettings
Scala API: minimum (initial) duration until the child actor will started again, if it is terminated
- def withRandomFactor(value: Double): RestartSettings
After calculation of the exponential back-off an additional random delay based on this factor is added e.g.
After calculation of the exponential back-off an additional random delay based on this factor is added e.g.
0.2
adds up to20%
delay. In order to skip this additional delay pass in0
- def withRestartOn(restartOn: Predicate[Throwable]): RestartSettings
Decides whether the failure should restart the stream or make the surrounding stream fail