public class BackoffSupervisor$
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static BackoffSupervisor$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
BackoffSupervisor$() |
Modifier and Type | Method and Description |
---|---|
BackoffSupervisor.GetCurrentChild$ |
getCurrentChild()
Java API: Send this message to the
BackoffSupervisor and it will reply with
BackoffSupervisor.CurrentChild containing the ActorRef of the current child, if any. |
Props |
props(Props childProps,
java.lang.String childName,
scala.concurrent.duration.FiniteDuration minBackoff,
scala.concurrent.duration.FiniteDuration maxBackoff,
double randomFactor)
Props for creating an
BackoffSupervisor actor. |
public static final BackoffSupervisor$ MODULE$
public Props props(Props childProps, java.lang.String childName, scala.concurrent.duration.FiniteDuration minBackoff, scala.concurrent.duration.FiniteDuration maxBackoff, double randomFactor)
BackoffSupervisor
actor.
childProps
- the Props
of the child actor that
will be started and supervisedchildName
- name of the child actorminBackoff
- minimum (initial) duration until the child actor will
started again, if it is terminatedmaxBackoff
- the exponential back-off is capped to this durationrandomFactor
- 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
.public BackoffSupervisor.GetCurrentChild$ getCurrentChild()
BackoffSupervisor
and it will reply with
BackoffSupervisor.CurrentChild
containing the ActorRef
of the current child, if any.