Package akka.pattern
Class BackoffSupervisor
- java.lang.Object
-
- akka.pattern.BackoffSupervisor
-
public class BackoffSupervisor extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BackoffSupervisor.CurrentChild
Send this message to theBackoffSupervisor
and it will reply withBackoffSupervisor.CurrentChild
containing theActorRef
of the current child, if any.static class
BackoffSupervisor.CurrentChild$
static class
BackoffSupervisor.GetCurrentChild$
Send this message to theBackoffSupervisor
and it will reply withBackoffSupervisor.CurrentChild
containing theActorRef
of the current child, if any.static class
BackoffSupervisor.GetRestartCount$
Send this message to theBackoffSupervisor
and it will reply withBackoffSupervisor.RestartCount
containing the current restart count.static class
BackoffSupervisor.Reset$
Send this message to theBackoffSupervisor
and it will reset the back-off.static class
BackoffSupervisor.ResetRestartCount$
static class
BackoffSupervisor.RestartCount
static class
BackoffSupervisor.RestartCount$
static class
BackoffSupervisor.StartChild$
INTERNAL API
-
Constructor Summary
Constructors Constructor Description BackoffSupervisor()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BackoffSupervisor.GetCurrentChild$
getCurrentChild()
Java API: Send this message to theBackoffSupervisor
and it will reply withBackoffSupervisor.CurrentChild
containing theActorRef
of the current child, if any.static BackoffSupervisor.GetRestartCount$
getRestartCount()
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.
-
-
-
Method Detail
-
props
public static Props props(BackoffOnStopOptions options)
Props for creating aBackoffSupervisor
actor fromBackoffOnStopOptions
.- Parameters:
options
- theBackoffOnStopOptions
that specify how to construct a backoff-supervisor.
-
props
public static Props props(BackoffOnFailureOptions options)
Props for creating aBackoffSupervisor
actor fromBackoffOnFailureOptions
.- Parameters:
options
- theBackoffOnFailureOptions
that specify how to construct a backoff-supervisor.
-
getCurrentChild
public static BackoffSupervisor.GetCurrentChild$ getCurrentChild()
Java API: Send this message to theBackoffSupervisor
and it will reply withBackoffSupervisor.CurrentChild
containing theActorRef
of the current child, if any.
-
reset
public static BackoffSupervisor.Reset$ reset()
Java API: Send this message to theBackoffSupervisor
and it will reset the back-off. This should be used in conjunction withwithManualReset
inBackoffOptions
.
-
getRestartCount
public static BackoffSupervisor.GetRestartCount$ getRestartCount()
Java API: Send this message to theBackoffSupervisor
and it will reply withBackoffSupervisor.RestartCount
containing the current restart count.
-
-