Refining Supervision API and remove AllForOne, OneForOne and replace with AllForOneStrategy, OneForOneStrategy etc
This commit is contained in:
parent
7b1d23428b
commit
32592b46a7
23 changed files with 123 additions and 129 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue