the number of times an actor is allowed to be restarted, negative value means no limit
duration of the time window for maxNrOfRetries, Duration.Inf means no window
mapping from Throwable to akka.actor.SupervisorStrategy.Directive, you can also use a
Seq
of Throwables which maps the given Throwables to restarts, otherwise escalates.
mapping from Throwable to akka.actor.SupervisorStrategy.Directive, you can also use a
Seq
of Throwables which maps the given Throwables to restarts, otherwise escalates.
mapping from Throwable to akka.actor.SupervisorStrategy.Directive, you can also use a
Seq
of Throwables which maps the given Throwables to restarts, otherwise escalates.
This method is called after the child has been removed from the set of children.
This method is called after the child has been removed from the set of children. It does not need to do anything special. Exceptions thrown from this method do NOT make the actor fail if this happens during termination.
This is the main entry point: in case of a child’s failure, this method
must try to handle the failure by resuming, restarting or stopping the
child (and returning true
), or it returns false
to escalate the
failure, which will lead to this actor re-throwing the exception which
caused the failure.
This is the main entry point: in case of a child’s failure, this method
must try to handle the failure by resuming, restarting or stopping the
child (and returning true
), or it returns false
to escalate the
failure, which will lead to this actor re-throwing the exception which
caused the failure. The exception will not be wrapped.
is a lazy collection (a view)
the number of times an actor is allowed to be restarted, negative value means no limit
This method is called to act on the failure of a child: restart if the flag is true, stop otherwise.
This method is called to act on the failure of a child: restart if the flag is true, stop otherwise.
Restart the given child, possibly suspending it first.
Restart the given child, possibly suspending it first.
IMPORTANT:
If the child is the currently failing one, it will already have been
suspended, hence suspendFirst
must be false. If the child is not the
currently failing one, then it did not request this treatment and is
therefore not prepared to be resumed without prior suspend.
Resume the previously failed child: do never apply this to a child which is not the currently failing child.
Resume the previously failed child: do never apply this to a child which is not the currently failing child. Suspend/resume needs to be done in matching pairs, otherwise actors will wake up too soon or never at all.
duration of the time window for maxNrOfRetries, Duration.
duration of the time window for maxNrOfRetries, Duration.Inf means no window
Applies the fault handling
Directive
(Resume, Restart, Stop) specified in theDecider
to all children when one fails, as opposed to akka.actor.OneForOneStrategy that applies it only to the child actor that failed.the number of times an actor is allowed to be restarted, negative value means no limit
duration of the time window for maxNrOfRetries, Duration.Inf means no window
mapping from Throwable to akka.actor.SupervisorStrategy.Directive, you can also use a
Seq
of Throwables which maps the given Throwables to restarts, otherwise escalates.