Package org.apache.pekko.pattern
Class BackoffSupervisor
java.lang.Object
org.apache.pekko.pattern.BackoffSupervisor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Send this message to theBackoffSupervisor
and it will reply withBackoffSupervisor.CurrentChild
containing theActorRef
of the current child, if any.static class
static class
Send this message to theBackoffSupervisor
and it will reply withBackoffSupervisor.CurrentChild
containing theActorRef
of the current child, if any.static class
Send this message to theBackoffSupervisor
and it will reply withBackoffSupervisor.RestartCount
containing the current restart count.static class
Send this message to theBackoffSupervisor
and it will reset the back-off.static class
static final class
static class
static class
INTERNAL API -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionJava API: Send this message to theBackoffSupervisor
and it will reply withBackoffSupervisor.CurrentChild
containing theActorRef
of the current child, if any.Java API: Send this message to theBackoffSupervisor
and it will reply withBackoffSupervisor.RestartCount
containing the current restart count.static Props
props
(BackoffOnFailureOptions options) Props for creating aBackoffSupervisor
actor fromBackoffOnFailureOptions
.static Props
props
(BackoffOnStopOptions options) Props for creating aBackoffSupervisor
actor fromBackoffOnStopOptions
.static BackoffSupervisor.Reset$
reset()
Java API: Send this message to theBackoffSupervisor
and it will reset the back-off.
-
Constructor Details
-
BackoffSupervisor
public BackoffSupervisor()
-
-
Method Details
-
props
Props for creating aBackoffSupervisor
actor fromBackoffOnStopOptions
.- Parameters:
options
- theBackoffOnStopOptions
that specify how to construct a backoff-supervisor.
-
props
Props for creating aBackoffSupervisor
actor fromBackoffOnFailureOptions
.- Parameters:
options
- theBackoffOnFailureOptions
that specify how to construct a backoff-supervisor.
-
getCurrentChild
Java API: Send this message to theBackoffSupervisor
and it will reply withBackoffSupervisor.CurrentChild
containing theActorRef
of the current child, if any. -
reset
Java API: Send this message to theBackoffSupervisor
and it will reset the back-off. This should be used in conjunction withwithManualReset
inBackoffOptions
. -
getRestartCount
Java API: Send this message to theBackoffSupervisor
and it will reply withBackoffSupervisor.RestartCount
containing the current restart count.
-