Adapts and improves documentation #26156
This commit is contained in:
parent
9f3b62a367
commit
9233ff5a40
8 changed files with 106 additions and 12 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue