Package org.apache.pekko.pattern
Class BackoffSupervisor
java.lang.Object
org.apache.pekko.pattern.BackoffSupervisor
-
Nested Class Summary
Nested 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 Summary
Constructors -
Method Summary
Modifier 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
-
BackoffSupervisor
public BackoffSupervisor()
-
-
Method Details
-
props
Props for creating aBackoffSupervisoractor fromBackoffOnStopOptions.- Parameters:
options- theBackoffOnStopOptionsthat specify how to construct a backoff-supervisor.
-
props
Props for creating aBackoffSupervisoractor fromBackoffOnFailureOptions.- Parameters:
options- theBackoffOnFailureOptionsthat specify how to construct a backoff-supervisor.
-
getCurrentChild
Java API: Send this message to theBackoffSupervisorand it will reply withBackoffSupervisor.CurrentChildcontaining theActorRefof the current child, if any. -
reset
Java API: Send this message to theBackoffSupervisorand it will reset the back-off. This should be used in conjunction withwithManualResetinBackoffOptions. -
getRestartCount
Java API: Send this message to theBackoffSupervisorand it will reply withBackoffSupervisor.RestartCountcontaining the current restart count.
-