Refining Supervision API and remove AllForOne, OneForOne and replace with AllForOneStrategy, OneForOneStrategy etc

This commit is contained in:
Viktor Klang 2010-10-19 14:17:22 +02:00
parent 7b1d23428b
commit 32592b46a7
23 changed files with 123 additions and 129 deletions

View file

@ -11,7 +11,7 @@ public class Boot {
public final static TypedActorConfigurator configurator = new TypedActorConfigurator();
static {
configurator.configure(
new RestartStrategy(new OneForOne(), 3, 5000, new Class[]{Exception.class}),
new OneForOneStrategy(new Class[]{Exception.class}, 3, 5000),
new SuperviseTypedActor[] {
new SuperviseTypedActor(
SimpleService.class,