O'Reilly logo

Akka Essentials by Munish K. Gupta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Stopping actors

Typed actors can be stopped via calling the Stop or PoisonPill method on the TypedActor extension and passing the reference of the dynamic proxy instance.

Java:

//To shut down the typed actor, call the stop method on the //TypedActor extension and providing the proxy instance
TypedActor.get(system).stop(calculator);

//Other way to stop the actor is invoke the Poisonpill method //on the TypedActor extension and passing the proxy instance
TypedActor.get(system).poisonPill(calculator);

Scala:

//To shut down the typed actor, call the stop method on the //TypedActor extension and providing the proxy instance
TypedActor(system).stop(calculator) //Other way to stop the actor is invoke the Poisonpill method //on the TypedActor extension ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required