Skip to content

Instantly share code, notes, and snippets.

@blt
Created April 11, 2011 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blt/914423 to your computer and use it in GitHub Desktop.
Save blt/914423 to your computer and use it in GitHub Desktop.
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