remove use of akka.actor.timeout property for ask

This commit is contained in:
Roland 2012-01-23 15:59:18 +01:00
parent 71d58c5338
commit 3a30f915c3
8 changed files with 25 additions and 56 deletions

View file

@ -231,8 +231,8 @@ public class UntypedActorDocTestBase {
final Timeout t = new Timeout(Duration.create(5, TimeUnit.SECONDS));
final ArrayList<Future<Object>> futures = new ArrayList<Future<Object>>();
futures.add(ask(actorA, "request")); // using `akka.actor.timeout` from config
futures.add(ask(actorB, "reqeest", t)); // using explicit timeout from above
futures.add(ask(actorA, "request", 1000)); // using 1000ms timeout
futures.add(ask(actorB, "reqeest", t)); // using timeout from above
final Future<Iterable<Object>> aggregate = Futures.sequence(futures, system.dispatcher());