Class SupervisorStrategy.Backoff

    • Constructor Detail

      • Backoff

        public Backoff​(scala.concurrent.duration.FiniteDuration minBackoff,
                       scala.concurrent.duration.FiniteDuration maxBackoff,
                       double randomFactor,
                       scala.concurrent.duration.FiniteDuration resetBackoffAfter,
                       boolean loggingEnabled,
                       org.slf4j.event.Level logLevel,
                       int maxRestarts,
                       boolean stopChildren,
                       int stashCapacity)
    • Method Detail

      • minBackoff

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

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

        public double randomFactor()
      • withResetBackoffAfter

        public BackoffSupervisorStrategy withResetBackoffAfter​(scala.concurrent.duration.FiniteDuration timeout)
        Description copied from class: BackoffSupervisorStrategy
        Scala API: The back-off algorithm is reset if the actor does not crash within the specified resetBackoffAfter. By default, the resetBackoffAfter has the same value as minBackoff.
        Specified by:
        withResetBackoffAfter in class BackoffSupervisorStrategy
        Parameters:
        timeout - (undocumented)
        Returns:
        (undocumented)
      • withResetBackoffAfter

        public BackoffSupervisorStrategy withResetBackoffAfter​(java.time.Duration timeout)
        Description copied from class: BackoffSupervisorStrategy
        Java API: The back-off algorithm is reset if the actor does not crash within the specified resetBackoffAfter. By default, the resetBackoffAfter has the same value as minBackoff.
        Specified by:
        withResetBackoffAfter in class BackoffSupervisorStrategy
        Parameters:
        timeout - (undocumented)
        Returns:
        (undocumented)
      • withStashCapacity

        public BackoffSupervisorStrategy withStashCapacity​(int capacity)
        Description copied from class: BackoffSupervisorStrategy
        While restarting (waiting for backoff to expire and children to stop) incoming messages and signals are stashed, and delivered later to the newly restarted behavior. This property defines the capacity in number of messages of the stash buffer. If the capacity is exceed then additional incoming messages are dropped.

        By default the capacity is defined by config property akka.actor.typed.restart-stash-capacity.

        Specified by:
        withStashCapacity in class BackoffSupervisorStrategy
        Parameters:
        capacity - (undocumented)
        Returns:
        (undocumented)
      • copy

        public SupervisorStrategy.Backoff copy​(scala.concurrent.duration.FiniteDuration minBackoff,
                                               scala.concurrent.duration.FiniteDuration maxBackoff,
                                               double randomFactor,
                                               scala.concurrent.duration.FiniteDuration resetBackoffAfter,
                                               boolean loggingEnabled,
                                               org.slf4j.event.Level logLevel,
                                               int maxRestarts,
                                               boolean stopChildren,
                                               int stashCapacity)
      • copy$default$1

        public scala.concurrent.duration.FiniteDuration copy$default$1()
      • copy$default$2

        public scala.concurrent.duration.FiniteDuration copy$default$2()
      • copy$default$3

        public double copy$default$3()
      • copy$default$4

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

        public boolean copy$default$5()
      • copy$default$6

        public org.slf4j.event.Level copy$default$6()
      • copy$default$7

        public int copy$default$7()
      • copy$default$8

        public boolean copy$default$8()
      • copy$default$9

        public int copy$default$9()
      • 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
      • productElementName

        public java.lang.String productElementName​(int x$1)
      • 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