In some of the akka-backoff examples I see that onStop
is being used and on some others, I see that onFailure
is being used, but I couldn't see an example where both are used for backoff, am I missing something? Isn't it common to backoff on both onStop and onFailure?
onFailure example and: onStop example
val supervisor = BackoffSupervisor.props(
Backoff.onFailure( // ok this one is onFailure, how to use both onStop?
childProps,
childName = "myEcho",
minBackoff = 3.seconds,
That the supervisor props can be created with either onFailure or onStop, is it possible to use both? how? I haven't seen yet a single example which specifies them both am I missing something?
(in addition, I see I need to specify the child name, am I supposed to guess the child name that has stopped? what if the child name is dynamic?! I don't get the child name meaning.)