Package org.apache.pekko.pattern
Class BackoffSupervisor
java.lang.Object
org.apache.pekko.pattern.BackoffSupervisor
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final classSend this message to theBackoffSupervisorand it will reply withBackoffSupervisor.CurrentChildcontaining theActorRefof the current child, if any.static classstatic classSend this message to theBackoffSupervisorand it will reply withBackoffSupervisor.CurrentChildcontaining theActorRefof the current child, if any.static classSend this message to theBackoffSupervisorand it will reply withBackoffSupervisor.RestartCountcontaining the current restart count.static classSend this message to theBackoffSupervisorand it will reset the back-off.static classstatic final classstatic classstatic classINTERNAL API
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionJava API: Send this message to theBackoffSupervisorand it will reply withBackoffSupervisor.CurrentChildcontaining theActorRefof the current child, if any.Java API: Send this message to theBackoffSupervisorand it will reply withBackoffSupervisor.RestartCountcontaining the current restart count.static Propsprops(BackoffOnFailureOptions options) Props for creating aBackoffSupervisoractor fromBackoffOnFailureOptions.static Propsprops(BackoffOnStopOptions options) Props for creating aBackoffSupervisoractor fromBackoffOnStopOptions.static BackoffSupervisor.Reset$reset()Java API: Send this message to theBackoffSupervisorand it will reset the back-off.
- 
Constructor Details- 
BackoffSupervisorpublic BackoffSupervisor()
 
- 
- 
Method Details- 
propsProps for creating aBackoffSupervisoractor fromBackoffOnStopOptions.- Parameters:
- options- the- BackoffOnStopOptionsthat specify how to construct a backoff-supervisor.
 
- 
propsProps for creating aBackoffSupervisoractor fromBackoffOnFailureOptions.- Parameters:
- options- the- BackoffOnFailureOptionsthat specify how to construct a backoff-supervisor.
 
- 
getCurrentChildJava API: Send this message to theBackoffSupervisorand it will reply withBackoffSupervisor.CurrentChildcontaining theActorRefof the current child, if any.
- 
resetJava API: Send this message to theBackoffSupervisorand it will reset the back-off. This should be used in conjunction withwithManualResetinBackoffOptions.
- 
getRestartCountJava API: Send this message to theBackoffSupervisorand it will reply withBackoffSupervisor.RestartCountcontaining the current restart count.
 
-