Class

de.knutwalker.akka.typed

ActorRefOps

Related Doc: package typed

Permalink

implicit final class ActorRefOps[A] extends AnyVal

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ActorRefOps
  2. AnyVal
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ActorRefOps(ref: ActorRef[A])

    Permalink

Value Members

  1. def !(msg: A)(implicit 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 ?[B](f: (ActorRef[B]) ⇒ A)(implicit 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 [email protected](payload) => m.replyTo ! MyResponse(payload)
      }
    }
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def forward(msg: A)(implicit context: ActorContext): Unit

    Permalink

  8. def getClass(): Class[_ <: AnyVal]

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

    Permalink
    Definition Classes
    Any
  10. def or[B]: ActorRef[|[A, B]]

    Permalink

    Build a union typed ActorRef out of this ActorRef.

    Build a union typed ActorRef out of this ActorRef. The resulting actor may accept either A or B as message.

  11. def path: ActorPath

    Permalink

  12. def toString(): String

    Permalink
    Definition Classes
    Any
  13. def unsafeTell(msg: Any)(implicit sender: UntypedActorRef = Actor.noSender): Unit

    Permalink

    Sends any message asynchronously, e.g.

    Sends any message asynchronously, e.g. akka.actor.PoisonPill. This is the same as using tell on a untyped actor.

    See also

    akka.actor.ActorRef#tell

  14. def untyped: UntypedActorRef

    Permalink

    Returns this typed ActorRef as an untyped akka.actor.ActorRef.

    Returns this typed ActorRef as an untyped akka.actor.ActorRef. The returned instance is eq to this.

Inherited from AnyVal

Inherited from Any

Ungrouped