Skip to content

Commit

Permalink
Merge pull request akka#22719 from akka/backoffSupervisorDocumentation
Browse files Browse the repository at this point in the history
Document using OneForOne with BackoffSupervisor
  • Loading branch information
2m authored Apr 14, 2017
2 parents 4246dcd + 3ef035f commit 6d22dd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion akka-actor/src/main/scala/akka/pattern/BackoffOptions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ trait BackoffOptions {
* Returns a new BackoffOptions with the supervisorStrategy.
* @param supervisorStrategy the supervisorStrategy that the back-off supervisor will use.
* The default supervisor strategy is used as fallback if the specified supervisorStrategy (its decider)
* does not explicitly handle an exception.
* does not explicitly handle an exception. As the BackoffSupervisor creates a separate actor to handle the
* backoff process, only a [[OneForOneStrategy]] makes sense here.
*/
def withSupervisorStrategy(supervisorStrategy: OneForOneStrategy): BackoffOptions

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ object BackoffSupervisor {
* random delay based on this factor is added, e.g. `0.2` adds up to `20%` delay.
* In order to skip this additional delay pass in `0`.
* @param strategy the supervision strategy to use for handling exceptions
* in the child
* in the child. As the BackoffSupervisor creates a separate actor to handle the
* backoff process, only a [[OneForOneStrategy]] makes sense here.
*/
def propsWithSupervisorStrategy(
childProps: Props,
Expand Down

0 comments on commit 6d22dd1

Please sign in to comment.