Packages

final class Receive extends AnyRef

Defines which messages the Actor can handle, along with the implementation of how the messages should be processed. You can build such behavior with the akka.japi.pf.ReceiveBuilder but it can be implemented in other ways than using the ReceiveBuilder since it in the end is just a wrapper around a Scala PartialFunction. In Java, you can implement PartialFunction by extending AbstractPartialFunction.

Source
AbstractActor.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Receive
  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. All

Instance Constructors

  1. new Receive(onMessage: PartialFunction[Any, BoxedUnit])

Value Members

  1. val onMessage: PartialFunction[Any, BoxedUnit]
  2. def orElse(other: Receive): Receive

    Composes this Receive with a fallback which gets applied where this partial function is not defined.