pekko/akka-samples/akka-sample-rest-java/src/main/java/sample/rest/java/Boot.java

29 lines
842 B
Java
Raw Normal View History

/**
* Copyright (C) 2009-2010 Scalable Solutions AB <http://scalablesolutions.se>
*/
package sample.rest.java;
import se.scalablesolutions.akka.config.TypedActorConfigurator;
import static se.scalablesolutions.akka.config.Supervision.*;
public class Boot {
public final static TypedActorConfigurator configurator = new TypedActorConfigurator();
static {
configurator.configure(
new OneForOneStrategy(new Class[]{Exception.class}, 3, 5000),
new SuperviseTypedActor[] {
new SuperviseTypedActor(
SimpleService.class,
2010-08-04 10:45:29 +02:00
SimpleServiceImpl.class,
permanent(),
1000),
new SuperviseTypedActor(
PersistentSimpleService.class,
2010-08-04 10:45:29 +02:00
PersistentSimpleServiceImpl.class,
permanent(),
1000)
}).supervise();
}
}