fix Java API for creating SupervisorStrategy from array
This commit is contained in:
parent
ec15fd6cfd
commit
62be4dafee
2 changed files with 4 additions and 4 deletions
|
|
@ -57,7 +57,7 @@ public class CustomRouterDocTestBase {
|
|||
public void demonstrateSupervisor() {
|
||||
//#supervision
|
||||
final SupervisorStrategy strategy = new OneForOneStrategy(5, Duration.parse("1 minute"),
|
||||
new Class<? extends Throwable>[] { Exception });
|
||||
new Class<?>[] { Exception.class });
|
||||
final ActorRef router = system.actorOf(new Props(MyActor.class)
|
||||
.withRouter(new RoundRobinRouter(5).withSupervisorStrategy(strategy)));
|
||||
//#supervision
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue