Class

de.knutwalker.akka.typed

ActorRefUnionedOps

Related Doc: package typed

Permalink

implicit final class ActorRefUnionedOps[U <: Union] extends AnyVal

Source
package.scala
Linear Supertypes
AnyVal, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ActorRefUnionedOps
  2. AnyVal
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ActorRefUnionedOps(ref: ActorRef[U])

    Permalink

Value Members

  1. def ![A](msg: A)(implicit ev: isPartOf[A, U], sender: UntypedActorRef = Actor.noSender): Unit

    Permalink

    Sends a typed message asynchronously.

    Sends a typed message asynchronously.

    See also

    akka.actor.ActorRef#tell

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

    Permalink
    Definition Classes
    Any
  3. final def ##(): Int

    Permalink
    Definition Classes
    Any
  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  5. def ?[A, B](f: (ActorRef[B]) ⇒ A)(implicit ev: isPartOf[A, U], timeout: Timeout, ctA: ClassTag[A], sender: UntypedActorRef = Actor.noSender): Future[B]

    Permalink

    Ask a typed question asynchronously.

    Ask a typed question asynchronously. This signature enforces the replyTo pattern for keeping type safety.

    Instead of sending a message of Any and replying to an untyped sender(), you supply a function that, given a typed sender, will return the message. This is typically done with a second parameter list of a case class.

    case class MyMessage(payload: String)(val replyTo: ActorRef[MyResponse])
    
    class MyActor extends Actor {
      def receive = {
        case m@MyMessage(payload) => m.replyTo ! MyResponse(payload)
      }
    }
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  8. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  9. def only[A](implicit ev: isPartOf[A, U]): ActorRef[A]

    Permalink

    Returns an ActorRef that only handles a subpart of the given union type.

  10. def toString(): String

    Permalink
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped