Class

akka.typed.ScalaDSL

Widened

Related Doc: package ScalaDSL

Permalink

final case class Widened[T, U >: T](behavior: Behavior[T], matcher: PartialFunction[U, T]) extends Behavior[U] with Product with Serializable

Widen the wrapped Behavior by placing a funnel in front of it: the supplied PartialFunction decides which message to pull in (those that it is defined at) and may transform the incoming message to place them into the wrapped Behavior’s type hierarchy. Signals are not transformed.

Source
ScalaDSL.scala
Linear Supertypes
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Widened
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Behavior
  7. AnyRef
  8. Any
Implicitly
  1. by BehaviorDecorators
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Widened(behavior: Behavior[T], matcher: PartialFunction[U, T])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def &&(other: Behavior[U]): Behavior[U]

    Permalink

    Combine the two behaviors such that incoming messages are distributed to both of them, each one evolving its state independently.

    Combine the two behaviors such that incoming messages are distributed to both of them, each one evolving its state independently.

    Implicit information
    This member is added by an implicit conversion from Widened[T, U] to BehaviorDecorators[U] performed by method BehaviorDecorators in akka.typed.ScalaDSL.
    Definition Classes
    BehaviorDecorators
  4. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Widened[T, U] to any2stringadd[Widened[T, U]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  5. def ->[B](y: B): (Widened[T, U], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Widened[T, U] to ArrowAssoc[Widened[T, U]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. val behavior: Behavior[T]

    Permalink
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def ensuring(cond: (Widened[T, U]) ⇒ Boolean, msg: ⇒ Any): Widened[T, U]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Widened[T, U] to Ensuring[Widened[T, U]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: (Widened[T, U]) ⇒ Boolean): Widened[T, U]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Widened[T, U] to Ensuring[Widened[T, U]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean, msg: ⇒ Any): Widened[T, U]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Widened[T, U] to Ensuring[Widened[T, U]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean): Widened[T, U]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Widened[T, U] to Ensuring[Widened[T, U]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Widened[T, U] to StringFormat[Widened[T, U]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. def management(ctx: ActorContext[U], msg: Signal): Behavior[U]

    Permalink

    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
    WidenedBehavior
  20. val matcher: PartialFunction[U, T]

    Permalink
  21. def message(ctx: ActorContext[U], msg: U): Behavior[U]

    Permalink

    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
    WidenedBehavior
  22. def narrow[U <: U]: Behavior[U]

    Permalink

    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
  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def toString(): String

    Permalink
    Definition Classes
    Widened → AnyRef → Any
  28. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. def widen[U >: T](matcher: PartialFunction[U, U]): Behavior[U]

    Permalink

    Widen the type of this Behavior by providing a filter function that permits only a subtype of the widened set of messages.

    Widen the type of this Behavior by providing a filter function that permits only a subtype of the widened set of messages.

    Implicit information
    This member is added by an implicit conversion from Widened[T, U] to BehaviorDecorators[U] performed by method BehaviorDecorators in akka.typed.ScalaDSL.
    Definition Classes
    BehaviorDecorators
  32. def ||(other: Behavior[U]): Behavior[U]

    Permalink

    Combine the two behaviors such that incoming messages are given first to the left behavior and are then only passed on to the right behavior if the left one returned Unhandled.

    Combine the two behaviors such that incoming messages are given first to the left behavior and are then only passed on to the right behavior if the left one returned Unhandled.

    Implicit information
    This member is added by an implicit conversion from Widened[T, U] to BehaviorDecorators[U] performed by method BehaviorDecorators in akka.typed.ScalaDSL.
    Definition Classes
    BehaviorDecorators
  33. def [B](y: B): (Widened[T, U], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Widened[T, U] to ArrowAssoc[Widened[T, U]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. val behavior: Behavior[U]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Widened[T, U] to BehaviorDecorators[U] performed by method BehaviorDecorators in akka.typed.ScalaDSL.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (widened: BehaviorDecorators[U]).behavior
    Definition Classes
    BehaviorDecorators

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Behavior[U]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion BehaviorDecorators from Widened[T, U] to BehaviorDecorators[U]

Inherited by implicit conversion any2stringadd from Widened[T, U] to any2stringadd[Widened[T, U]]

Inherited by implicit conversion StringFormat from Widened[T, U] to StringFormat[Widened[T, U]]

Inherited by implicit conversion Ensuring from Widened[T, U] to Ensuring[Widened[T, U]]

Inherited by implicit conversion ArrowAssoc from Widened[T, U] to ArrowAssoc[Widened[T, U]]

Ungrouped