=cls increase the delay in the graceful shutdown example

This commit is contained in:
Patrik Nordwall 2015-12-21 09:54:14 +01:00
parent 290f402b79
commit 5ebdd79bee
2 changed files with 2 additions and 2 deletions

View file

@ -56,7 +56,7 @@ object ClusterShardingGracefulShutdownSpec {
case "member-removed"
// Let singletons hand over gracefully before stopping the system
import context.dispatcher
system.scheduler.scheduleOnce(3.seconds, self, "stop-system")
system.scheduler.scheduleOnce(10.seconds, self, "stop-system")
case "stop-system"
system.terminate()

View file

@ -204,7 +204,7 @@ public class ClusterShardingTest {
}).
match(String.class, s -> s.equals("member-removed"), s -> {
// Let singletons hand over gracefully before stopping the system
context().system().scheduler().scheduleOnce(Duration.create(3, SECONDS),
context().system().scheduler().scheduleOnce(Duration.create(10, SECONDS),
self(), "stop-system", context().dispatcher(), self());
}).
match(String.class, s -> s.equals("stop-system"), s -> {