Packages

package adapter

Scala API: Adapters between typed and untyped actors and actor systems. The underlying ActorSystem is the untyped akka.actor.ActorSystem which runs Akka Typed akka.actor.typed.Behavior on an emulation layer. In this system typed and untyped actors can coexist.

Use these adapters with import akka.actor.typed.scaladsl.adapter._.

Implicit extension methods are added to untyped and typed ActorSystem, ActorContext. Such methods make it possible to create typed child actor from untyped parent actor, and the opposite untyped child from typed parent. watch is also supported in both directions.

There is an implicit conversion from untyped akka.actor.ActorRef to typed akka.actor.typed.ActorRef.

There are also converters (toTyped, toUntyped) from typed akka.actor.typed.ActorRef to untyped akka.actor.ActorRef, and between untyped akka.actor.ActorSystem and typed akka.actor.typed.ActorSystem.

Source
package.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. adapter
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. implicit final class TypedActorContextOps extends AnyVal

    Extension methods added to akka.actor.typed.scaladsl.ActorContext.

  2. implicit final class TypedActorRefOps extends AnyVal

    Extension methods added to akka.actor.typed.ActorRef.

  3. implicit final class TypedActorSystemOps extends AnyVal

    Extension methods added to akka.actor.typed.ActorSystem.

  4. implicit final class UntypedActorContextOps extends AnyVal

    Extension methods added to akka.actor.ActorContext.

  5. implicit final class UntypedActorRefOps extends AnyVal

    Extension methods added to akka.actor.ActorRef.

  6. implicit final class UntypedActorSystemOps extends AnyVal

    Extension methods added to akka.actor.ActorSystem.

Value Members

  1. implicit def actorRefAdapter[T](ref: actor.ActorRef): ActorRef[T]

    Implicit conversion from untyped akka.actor.ActorRef to typed akka.actor.typed.ActorRef.

  2. object AdapterExtension extends actor.ExtensionId[AdapterExtension]

    Internal API

    Internal API

    Annotations
    @InternalApi()
  3. object PropsAdapter

    Wrap akka.actor.typed.Behavior in an untyped akka.actor.Props, i.e.

    Wrap akka.actor.typed.Behavior in an untyped akka.actor.Props, i.e. when spawning a typed child actor from an untyped parent actor. This is normally not needed because you can use the extension methods spawn and spawnAnonymous on an untyped ActorContext, but it's needed when using typed actors with an existing library/tool that provides an API that takes an untyped akka.actor.Props parameter. Cluster Sharding is an example of that.

Inherited from AnyRef

Inherited from Any

Ungrouped