Package akka.pattern

Class BackoffOnFailureOptionsImpl<T>

    • Constructor Detail

      • BackoffOnFailureOptionsImpl

        public BackoffOnFailureOptionsImpl​(Props childProps,
                                           java.lang.String childName,
                                           scala.concurrent.duration.FiniteDuration minBackoff,
                                           scala.concurrent.duration.FiniteDuration maxBackoff,
                                           double randomFactor,
                                           scala.Option<BackoffReset> reset,
                                           OneForOneStrategy supervisorStrategy,
                                           scala.Option<java.lang.Object> replyWhileStopped)
    • Method Detail

      • $lessinit$greater$default$6

        public static <T> scala.Option<BackoffReset> $lessinit$greater$default$6()
      • $lessinit$greater$default$7

        public static <T> OneForOneStrategy $lessinit$greater$default$7()
      • $lessinit$greater$default$8

        public static <T> scala.Option<java.lang.Object> $lessinit$greater$default$8()
      • apply

        public static <T> BackoffOnFailureOptionsImpl<T> apply​(Props childProps,
                                                               java.lang.String childName,
                                                               scala.concurrent.duration.FiniteDuration minBackoff,
                                                               scala.concurrent.duration.FiniteDuration maxBackoff,
                                                               double randomFactor,
                                                               scala.Option<BackoffReset> reset,
                                                               OneForOneStrategy supervisorStrategy,
                                                               scala.Option<java.lang.Object> replyWhileStopped)
      • apply$default$6

        public static <T> scala.Option<BackoffReset> apply$default$6()
      • apply$default$8

        public static <T> scala.Option<java.lang.Object> apply$default$8()
      • unapply

        public static <T> scala.Option<scala.Tuple8<Props,​java.lang.String,​scala.concurrent.duration.FiniteDuration,​scala.concurrent.duration.FiniteDuration,​java.lang.Object,​scala.Option<BackoffReset>,​OneForOneStrategy,​scala.Option<java.lang.Object>>> unapply​(BackoffOnFailureOptionsImpl<T> x$0)
      • childProps

        public Props childProps()
      • childName

        public java.lang.String childName()
      • minBackoff

        public scala.concurrent.duration.FiniteDuration minBackoff()
      • maxBackoff

        public scala.concurrent.duration.FiniteDuration maxBackoff()
      • randomFactor

        public double randomFactor()
      • replyWhileStopped

        public scala.Option<java.lang.Object> replyWhileStopped()
      • withAutoReset

        public BackoffOnFailureOptionsImpl<scala.runtime.Nothing$> withAutoReset​(scala.concurrent.duration.FiniteDuration resetBackoff)
        Description copied from interface: ExtendedBackoffOptions
        Returns a new BackoffOptions with automatic back-off reset. The back-off algorithm is reset if the child does not crash within the specified resetBackoff.

        Specified by:
        withAutoReset in interface ExtendedBackoffOptions<T>
        Parameters:
        resetBackoff - The back-off is reset if the child does not crash within this duration.
        Returns:
        (undocumented)
      • withSupervisorStrategy

        public BackoffOnFailureOptionsImpl<scala.runtime.Nothing$> withSupervisorStrategy​(OneForOneStrategy supervisorStrategy)
        Description copied from interface: ExtendedBackoffOptions
        Returns a new BackoffOptions with the supervisorStrategy.

        Specified by:
        withSupervisorStrategy in interface ExtendedBackoffOptions<T>
        Parameters:
        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. As the BackoffSupervisor creates a separate actor to handle the backoff process, only a OneForOneStrategy makes sense here. Note that changing the strategy will replace the previously defined maxNrOfRetries.
        Returns:
        (undocumented)
      • withReplyWhileStopped

        public BackoffOnFailureOptionsImpl<scala.runtime.Nothing$> withReplyWhileStopped​(java.lang.Object replyWhileStopped)
        Description copied from interface: ExtendedBackoffOptions
        Returns a new BackoffOptions with a constant reply to messages that the supervisor receives while its child is stopped. By default, a message received while the child is stopped is forwarded to deadLetters. With this option, the supervisor will reply to the sender instead.

        Specified by:
        withReplyWhileStopped in interface ExtendedBackoffOptions<T>
        Parameters:
        replyWhileStopped - The message that the supervisor will send in response to all messages while its child is stopped.
        Returns:
        (undocumented)
      • withMaxNrOfRetries

        public BackoffOnFailureOptionsImpl<scala.runtime.Nothing$> withMaxNrOfRetries​(int maxNrOfRetries)
        Description copied from interface: ExtendedBackoffOptions
        Returns a new BackoffOptions with a maximum number of retries to restart the child actor. By default, the supervisor will retry infinitely. With this option, the supervisor will terminate itself after the maxNoOfRetries is reached.

        Specified by:
        withMaxNrOfRetries in interface ExtendedBackoffOptions<T>
        Parameters:
        maxNrOfRetries - the number of times a child actor is allowed to be restarted. If negative, the value is unbounded, otherwise the provided limit is used. If the limit is exceeded the child actor will be stopped.
        Returns:
        (undocumented)
      • copy

        public <T> BackoffOnFailureOptionsImpl<T> copy​(Props childProps,
                                                       java.lang.String childName,
                                                       scala.concurrent.duration.FiniteDuration minBackoff,
                                                       scala.concurrent.duration.FiniteDuration maxBackoff,
                                                       double randomFactor,
                                                       scala.Option<BackoffReset> reset,
                                                       OneForOneStrategy supervisorStrategy,
                                                       scala.Option<java.lang.Object> replyWhileStopped)
      • copy$default$1

        public <T> Props copy$default$1()
      • copy$default$2

        public <T> java.lang.String copy$default$2()
      • copy$default$3

        public <T> scala.concurrent.duration.FiniteDuration copy$default$3()
      • copy$default$4

        public <T> scala.concurrent.duration.FiniteDuration copy$default$4()
      • copy$default$5

        public <T> double copy$default$5()
      • copy$default$6

        public <T> scala.Option<BackoffReset> copy$default$6()
      • copy$default$8

        public <T> scala.Option<java.lang.Object> copy$default$8()
      • productPrefix

        public java.lang.String productPrefix()
        Specified by:
        productPrefix in interface scala.Product
      • productArity

        public int productArity()
        Specified by:
        productArity in interface scala.Product
      • productElement

        public java.lang.Object productElement​(int x$1)
        Specified by:
        productElement in interface scala.Product
      • productIterator

        public scala.collection.Iterator<java.lang.Object> productIterator()
        Specified by:
        productIterator in interface scala.Product
      • canEqual

        public boolean canEqual​(java.lang.Object x$1)
        Specified by:
        canEqual in interface scala.Equals
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object x$1)
        Specified by:
        equals in interface scala.Equals
        Overrides:
        equals in class java.lang.Object