| BackoffOnStop Method |
Back-off options for creating a back-off supervisor actor that expects a child actor to stop on failure.
Namespace:
Akka.Pattern
Assembly:
Akka (in Akka.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax public static BackoffOptions OnStop(
Props childProps,
string childName,
TimeSpan minBackoff,
TimeSpan maxBackoff,
double randomFactor
)
static member OnStop :
childProps : Props *
childName : string *
minBackoff : TimeSpan *
maxBackoff : TimeSpan *
randomFactor : float -> BackoffOptions
Parameters
- childProps
- Type: Akka.ActorProps
The Props of the child actor that will be started and supervised - childName
- Type: SystemString
Name of the child actor - minBackoff
- Type: SystemTimeSpan
Minimum (initial) duration until the child actor will started again, if it is terminated - maxBackoff
- Type: SystemTimeSpan
The exponential back-off is capped to this duration - randomFactor
- Type: SystemDouble
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`.
Return Value
Type:
BackoffOptions[Missing <returns> documentation for "M:Akka.Pattern.Backoff.OnStop(Akka.Actor.Props,System.String,System.TimeSpan,System.TimeSpan,System.Double)"]
See Also