Skip to content

Instantly share code, notes, and snippets.

@polymorphic
Created September 5, 2013 17:17
Show Gist options
  • Save polymorphic/6453235 to your computer and use it in GitHub Desktop.
Save polymorphic/6453235 to your computer and use it in GitHub Desktop.
Akka 2.2.0 Props for new instance w/ inline override
cmdbTopology = context.actorOf(Props(new CmdbTopology {
override val supervisorStrategy = OneForOneStrategy() {
case nai: NotApplicableToItem => Resume // ensure recipe exception do not stop the actor
}
}).withDispatcher("topology-dispatcher"), "cmdb-topology")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment