That is not possible. You have to stop the actor and start a new one. /Patrik
On Tue, Nov 17, 2015 at 3:41 PM, Fahimeh Rahemi <[email protected]> wrote: > Hello every body! > > Is there any way to change the dispatcher associated to an actor at run > time? For example, I have created an actor as follows: > getContext().actorOf ( Props.create ( MyClass.class, parameter) > .withDispatcher("my-task-pool-dispatcher") > , "class1"); > During run time, I want to be able to change that > "my-task-pool-dispatcher" to "my-pinned-dispatcher" inside my code; Is it > possible? > > thanks > > -- > >>>>>>>>>> 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 http://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > -- Patrik Nordwall Typesafe <http://typesafe.com/> - Reactive apps on the JVM Twitter: @patriknw -- >>>>>>>>>> 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 http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
