May 2017
Intermediate to advanced
414 pages
13h
English
For this recipe, we need to perform the following steps:
package com.packt.chapter10 import akka.actor.{Actor, ActorLogging, ActorRef, Terminated} import scala.collection.mutable object Reaper { case class WatchMe(ref: ActorRef) } class Reaper extends Actor with ActorLogging { import Reaper._ val watched = mutable.Set.empty[ActorRef] def allActorsTerminated() = { log.info("All actors terminated. Proceeding to shutdown system.") context.system.terminate() } def receive = { case WatchMe(ref) => log.info(s"Registering ...
Read now
Unlock full access