You cannot invoke the supervisor strategy directly like above, it will just return a directive but not do anything else. The strategy is invoked by the actor cell if a child actor fails and then the returned directive is used to determine how to proceed.
-Endre On Thu, May 12, 2016 at 5:30 PM, Yan Pei <[email protected]> wrote: > Good morning, > > The child actor gets a Future for a API call, then the Future being piped > back to it's parent actor. > > After match(Failure.class) is true, the Parent actor call > this.supervisorStragety().decider().apply(throwable); > > > My question is if the parent's supervisorStragety knows which child actor > to act on for this exception? > > Thanks, > Yan > > -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ > >>>>>>>>>> Check the FAQ: > http://doc.akka.io/docs/akka/current/additional/faq.html > >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user > --- > You received this message because you are subscribed to the Google Groups > "Akka User List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > -- Akka Team Typesafe - Reactive apps on the JVM Blog: letitcrash.com Twitter: @akkateam -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
