Skip to content

Instantly share code, notes, and snippets.

@blt
Created Apr 11, 2011
Embed
What would you like to do?
package us.troutwine.botty
import akka.config.Supervision._
import akka.actor._
object Boot {
Supervisor(
SupervisorConfig(
OneForOneStrategy(List(classOf[Exception]), 3, 1000),
Supervise(
Actor.actorOf[AccountManager],
Permanent
) ::
Supervise(
Actor.actorOf(new FooAgent("22222222222222222222222222")),
Permanent
) ::
Supervise(
Actor.actorOf[NumberBotSupervisor],
Permanent
) ::
Nil
)
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment