public final class BackoffOptionsImpl extends java.lang.Object implements BackoffOptions, scala.Product, scala.Serializable
Constructor and Description |
---|
BackoffOptionsImpl(BackoffType backoffType,
Props childProps,
java.lang.String childName,
scala.concurrent.duration.FiniteDuration minBackoff,
scala.concurrent.duration.FiniteDuration maxBackoff,
double randomFactor,
scala.Option<BackoffReset> reset,
OneForOneStrategy supervisorStrategy) |
Modifier and Type | Method and Description |
---|---|
BackoffReset |
backoffReset() |
BackoffType |
backoffType() |
abstract static boolean |
canEqual(java.lang.Object that) |
java.lang.String |
childName() |
Props |
childProps() |
abstract static boolean |
equals(java.lang.Object that) |
scala.concurrent.duration.FiniteDuration |
maxBackoff() |
scala.concurrent.duration.FiniteDuration |
minBackoff() |
abstract static int |
productArity() |
abstract static java.lang.Object |
productElement(int n) |
static scala.collection.Iterator<java.lang.Object> |
productIterator() |
static java.lang.String |
productPrefix() |
Props |
props()
Returns the props to create the back-off supervisor.
|
double |
randomFactor() |
scala.Option<BackoffReset> |
reset() |
OneForOneStrategy |
supervisorStrategy() |
BackoffOptionsImpl |
withAutoReset(scala.concurrent.duration.FiniteDuration resetBackoff)
Returns a new BackoffOptions with automatic back-off reset.
|
BackoffOptionsImpl |
withDefaultStoppingStrategy()
Returns a new BackoffOptions with a default
SupervisorStrategy.stoppingStrategy . |
BackoffOptionsImpl |
withManualReset()
Returns a new BackoffOptions with manual back-off reset.
|
BackoffOptionsImpl |
withSupervisorStrategy(OneForOneStrategy supervisorStrategy)
Returns a new BackoffOptions with the supervisorStrategy.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public BackoffOptionsImpl(BackoffType backoffType, Props childProps, java.lang.String childName, scala.concurrent.duration.FiniteDuration minBackoff, scala.concurrent.duration.FiniteDuration maxBackoff, double randomFactor, scala.Option<BackoffReset> reset, OneForOneStrategy supervisorStrategy)
public abstract static boolean canEqual(java.lang.Object that)
public abstract static boolean equals(java.lang.Object that)
public abstract static java.lang.Object productElement(int n)
public abstract static int productArity()
public static scala.collection.Iterator<java.lang.Object> productIterator()
public static java.lang.String productPrefix()
public BackoffType backoffType()
public Props childProps()
public java.lang.String childName()
public scala.concurrent.duration.FiniteDuration minBackoff()
public scala.concurrent.duration.FiniteDuration maxBackoff()
public double randomFactor()
public scala.Option<BackoffReset> reset()
public OneForOneStrategy supervisorStrategy()
public BackoffReset backoffReset()
public BackoffOptionsImpl withAutoReset(scala.concurrent.duration.FiniteDuration resetBackoff)
BackoffOptions
resetBackoff
.withAutoReset
in interface BackoffOptions
resetBackoff
- The back-off is reset if the child does not crash within this duration.public BackoffOptionsImpl withManualReset()
BackoffOptions
BackoffSupervisor.Reset
to its parent (the backoff-supervisor actor).withManualReset
in interface BackoffOptions
public BackoffOptionsImpl withSupervisorStrategy(OneForOneStrategy supervisorStrategy)
BackoffOptions
withSupervisorStrategy
in interface BackoffOptions
supervisorStrategy
- the supervisorStrategy that the back-off supervisor will use.
The default supervisor strategy is used as fallback if the specified supervisorStrategy (its decider)
does not explicitly handle an exception.public BackoffOptionsImpl withDefaultStoppingStrategy()
BackoffOptions
SupervisorStrategy.stoppingStrategy
.
The default supervisor strategy is used as fallback for throwables not handled by SupervisorStrategy.stoppingStrategy
.withDefaultStoppingStrategy
in interface BackoffOptions
public Props props()
BackoffOptions
props
in interface BackoffOptions