Packages

t

org.apache.pekko.pattern

BackoffOptions

trait BackoffOptions extends AnyRef

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)
Annotations
@DoNotInherit() @deprecated
Deprecated

(Since version Akka 2.5.22) Use new API from BackoffOpts object instead

Source
Backoff.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BackoffOptions
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def withAutoReset(resetBackoff: FiniteDuration): BackoffOptions

    See also

    ExtendedBackoffOptions.withAutoReset

  2. abstract def withDefaultStoppingStrategy: BackoffOptions

    See also

    ExtendedBackoffOptions.withDefaultStoppingStrategy

  3. abstract def withFinalStopMessage(isFinalStopMessage: (Any) => Boolean): BackoffOptions

  4. abstract def withManualReset: BackoffOptions

    See also

    ExtendedBackoffOptions.withManualReset

  5. abstract def withMaxNrOfRetries(maxNrOfRetries: Int): BackoffOptions

    See also

    ExtendedBackoffOptions.withMaxNrOfRetries

  6. abstract def withReplyWhileStopped(replyWhileStopped: Any): BackoffOptions

    See also

    ExtendedBackoffOptions.withReplyWhileStopped

  7. abstract def withSupervisorStrategy(supervisorStrategy: OneForOneStrategy): BackoffOptions

    See also

    ExtendedBackoffOptions.withSupervisorStrategy