fix Java API for creating SupervisorStrategy from array

This commit is contained in:
Roland 2012-02-19 10:12:20 +01:00
parent ec15fd6cfd
commit 62be4dafee
2 changed files with 4 additions and 4 deletions

View file

@ -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