Package akka.pattern

Interface BackoffOptions

  • All Known Implementing Classes:
    BackoffOptionsImpl

    public interface BackoffOptions
    Deprecated.
    Use new API from BackoffOpts object instead. Since 2.5.22.
    Configures a back-off supervisor actor. Start with Backoff.onStop or Backoff.onFailure. BackoffOptions is immutable, so be sure to chain methods like:
    
     val options = Backoff.onFailure(childProps, childName, minBackoff, maxBackoff, randomFactor)
                   .withManualReset
     context.actorOf(BackoffSupervisor.props(options), name)
     
    • Method Detail

      • props

        Props props()
        Deprecated.
        Returns the props to create the back-off supervisor.
      • withAutoReset

        BackoffOptions withAutoReset​(scala.concurrent.duration.FiniteDuration resetBackoff)
        Deprecated.
        See Also:
        ExtendedBackoffOptions.withAutoReset
      • withDefaultStoppingStrategy

        BackoffOptions withDefaultStoppingStrategy()
        Deprecated.
        See Also:
        ExtendedBackoffOptions.withDefaultStoppingStrategy
      • withFinalStopMessage

        BackoffOptions withFinalStopMessage​(scala.Function1<java.lang.Object,​java.lang.Object> isFinalStopMessage)
        Deprecated.
        See Also:
        BackoffOnStopOptions.withFinalStopMessage
      • withManualReset

        BackoffOptions withManualReset()
        Deprecated.
        See Also:
        ExtendedBackoffOptions.withManualReset
      • withMaxNrOfRetries

        BackoffOptions withMaxNrOfRetries​(int maxNrOfRetries)
        Deprecated.
        See Also:
        ExtendedBackoffOptions.withMaxNrOfRetries
      • withReplyWhileStopped

        BackoffOptions withReplyWhileStopped​(java.lang.Object replyWhileStopped)
        Deprecated.
        See Also:
        ExtendedBackoffOptions.withReplyWhileStopped
      • withSupervisorStrategy

        BackoffOptions withSupervisorStrategy​(OneForOneStrategy supervisorStrategy)
        Deprecated.
        See Also:
        ExtendedBackoffOptions.withSupervisorStrategy