Packages

final case class Restarter[T, Thr <: Throwable](initialBehavior: Behavior[T], resume: Boolean)(implicit evidence$1: ClassTag[Thr]) extends Behavior[T] with Product with Serializable

Simple supervision strategy that restarts the underlying behavior for all failures of type Thr.

FIXME add limited restarts and back-off (with limited buffering or vacation responder) FIXME write tests that ensure that all Behaviors are okay with getting PostRestart as first signal

Source
Restarter.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Restarter
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Behavior
  7. AnyRef
  8. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Restarter(initialBehavior: Behavior[T], resume: Boolean)(implicit arg0: ClassTag[Thr])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from Restarter[T, Thr] to any2stringadd[Restarter[T, Thr]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Restarter[T, Thr], B)
    Implicit
    This member is added by an implicit conversion from Restarter[T, Thr] to ArrowAssoc[Restarter[T, Thr]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def ensuring(cond: (Restarter[T, Thr]) ⇒ Boolean, msg: ⇒ Any): Restarter[T, Thr]
    Implicit
    This member is added by an implicit conversion from Restarter[T, Thr] to Ensuring[Restarter[T, Thr]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  9. def ensuring(cond: (Restarter[T, Thr]) ⇒ Boolean): Restarter[T, Thr]
    Implicit
    This member is added by an implicit conversion from Restarter[T, Thr] to Ensuring[Restarter[T, Thr]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: Boolean, msg: ⇒ Any): Restarter[T, Thr]
    Implicit
    This member is added by an implicit conversion from Restarter[T, Thr] to Ensuring[Restarter[T, Thr]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean): Restarter[T, Thr]
    Implicit
    This member is added by an implicit conversion from Restarter[T, Thr] to Ensuring[Restarter[T, Thr]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from Restarter[T, Thr] to StringFormat[Restarter[T, Thr]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  16. val initialBehavior: Behavior[T]
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def management(ctx: ActorContext[T], signal: Signal): Behavior[T]

    Process an incoming Signal and return the next behavior.

    Process an incoming Signal and return the next behavior. This means that all lifecycle hooks, ReceiveTimeout, Terminated and Failed messages can initiate a behavior change.

    The returned behavior can in addition to normal behaviors be one of the canned special objects:

    * returning Stopped will terminate this Behavior * returning Same designates to reuse the current Behavior * returning Unhandled keeps the same Behavior and signals that the message was not yet handled

    Code calling this method should use Behavior$ canonicalize to replace the special objects with real Behaviors.

    Definition Classes
    RestarterBehavior
  19. def message(ctx: ActorContext[T], msg: T): Behavior[T]

    Process an incoming message and return the next behavior.

    Process an incoming message and return the next behavior.

    The returned behavior can in addition to normal behaviors be one of the canned special objects:

    * returning Stopped will terminate this Behavior * returning Same designates to reuse the current Behavior * returning Unhandled keeps the same Behavior and signals that the message was not yet handled

    Code calling this method should use Behavior$ canonicalize to replace the special objects with real Behaviors.

    Definition Classes
    RestarterBehavior
  20. def narrow[U <: T]: Behavior[U]

    Narrow the type of this Behavior, which is always a safe operation.

    Narrow the type of this Behavior, which is always a safe operation. This method is necessary to implement the contravariant nature of Behavior (which cannot be expressed directly due to type inference problems).

    Definition Classes
    Behavior
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  24. val resume: Boolean
  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. def [B](y: B): (Restarter[T, Thr], B)
    Implicit
    This member is added by an implicit conversion from Restarter[T, Thr] to ArrowAssoc[Restarter[T, Thr]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Behavior[T]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Restarter[T, Thr] to any2stringadd[Restarter[T, Thr]]

Inherited by implicit conversion StringFormat from Restarter[T, Thr] to StringFormat[Restarter[T, Thr]]

Inherited by implicit conversion Ensuring from Restarter[T, Thr] to Ensuring[Restarter[T, Thr]]

Inherited by implicit conversion ArrowAssoc from Restarter[T, Thr] to ArrowAssoc[Restarter[T, Thr]]

Ungrouped