Package

com.github.j5ik2o.akka.backoff

enhancement

Permalink

package enhancement

Visibility
  1. Public
  2. All

Type Members

  1. final case class AutoReset(resetBackoff: FiniteDuration) extends BackoffReset with Product with Serializable

    Permalink
  2. trait BackoffOnRestartSupervisor extends Actor with HandleBackoff

    Permalink
  3. class BackoffOnRestartSupervisorImpl extends BackoffOnRestartSupervisor

    Permalink
  4. trait BackoffOptions extends AnyRef

    Permalink

    Configures a back-off supervisor actor.

    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)
  5. sealed trait BackoffReset extends AnyRef

    Permalink
  6. trait BackoffSupervisor extends Actor with HandleBackoff

    Permalink

    Back-off supervisor that stops and starts a child actor using a back-off algorithm when the child actor stops.

    Back-off supervisor that stops and starts a child actor using a back-off algorithm when the child actor stops. This back-off supervisor is created by using akka.pattern.BackoffSupervisor.props with Backoff.onStop.

  7. class BackoffSupervisorImpl extends BackoffSupervisor

    Permalink
  8. sealed trait BackoffType extends AnyRef

    Permalink
  9. trait HandleBackoff extends ActorLogging

    Permalink

Value Members

  1. object Backoff

    Permalink

    Builds back-off options for creating a back-off supervisor.

    Builds back-off options for creating a back-off supervisor. You can pass BackoffOptions to akka.pattern.BackoffSupervisor.props. An example of creating back-off options:

    Backoff.onFailure(childProps, childName, minBackoff, maxBackoff, randomFactor)
                  .withManualReset
                  .withSupervisorStrategy(
                    OneforOneStrategy(){
                       case e: GivingUpException => Stop
                       case e: RetryableException => Restart
                    }
                  )
  2. object BackoffOptions

    Permalink
  3. object BackoffSupervisor

    Permalink
  4. object CustomImpliesFailure extends BackoffType with Product with Serializable

    Permalink
  5. object ManualReset extends BackoffReset with Product with Serializable

    Permalink
  6. object RestartImpliesFailure extends BackoffType with Product with Serializable

    Permalink
  7. object StopImpliesFailure extends BackoffType with Product with Serializable

    Permalink

Ungrouped