Package org.apache.pekko.pattern
Class BackoffSupervisor$
java.lang.Object
org.apache.pekko.pattern.BackoffSupervisor$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BackoffSupervisor$Static reference to the singleton instance of this Scala object. -
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.props(BackoffOnFailureOptions options) Props for creating aBackoffSupervisoractor fromBackoffOnFailureOptions.props(BackoffOnStopOptions options) Props for creating aBackoffSupervisoractor fromBackoffOnStopOptions.reset()Java API: Send this message to theBackoffSupervisorand it will reset the back-off.
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
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.
-