Adapts and improves documentation #26156

This commit is contained in:
Nicolas Vollmar 2019-01-18 20:44:47 +01:00
parent 9f3b62a367
commit 9233ff5a40
8 changed files with 106 additions and 12 deletions

View file

@ -6,6 +6,7 @@ package jdocs.pattern;
import akka.actor.*;
import akka.pattern.Backoff;
import akka.pattern.BackoffOpts;
import akka.pattern.BackoffSupervisor;
import akka.testkit.TestActors.EchoActor;
// #backoff-imports
@ -20,7 +21,7 @@ public class BackoffSupervisorDocTest {
final Props supervisorProps =
BackoffSupervisor.props(
Backoff.onStop(
BackoffOpts.onStop(
childProps,
"myEcho",
Duration.ofSeconds(3),
@ -37,7 +38,7 @@ public class BackoffSupervisorDocTest {
final Props supervisorProps =
BackoffSupervisor.props(
Backoff.onFailure(
BackoffOpts.onFailure(
childProps,
"myEcho",
Duration.ofSeconds(3),