Packages

object Adapter

Java 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.

These 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 are also converters (toTyped, toUntyped) between untyped akka.actor.ActorRef and typed akka.actor.typed.ActorRef, and between untyped akka.actor.ActorSystem and typed akka.actor.typed.ActorSystem.

Source
Adapter.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

Value Members

  1. def actorOf(ctx: ActorContext[_], props: actor.Props, name: String): actor.ActorRef
  2. def actorOf(ctx: ActorContext[_], props: actor.Props): actor.ActorRef
  3. def props[T](behavior: Creator[Behavior[T]]): actor.Props

    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 with 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.

  4. def props[T](behavior: Creator[Behavior[T]], deploy: Props): actor.Props

    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 with 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.

  5. def spawn[T](ctx: actor.ActorContext, behavior: Behavior[T], name: String, props: Props): ActorRef[T]
  6. def spawn[T](ctx: actor.ActorContext, behavior: Behavior[T], name: String): ActorRef[T]
  7. def spawn[T](sys: actor.ActorSystem, behavior: Behavior[T], name: String, props: Props): ActorRef[T]
  8. def spawn[T](sys: actor.ActorSystem, behavior: Behavior[T], name: String): ActorRef[T]
  9. def spawnAnonymous[T](ctx: actor.ActorContext, behavior: Behavior[T], props: Props): ActorRef[T]
  10. def spawnAnonymous[T](ctx: actor.ActorContext, behavior: Behavior[T]): ActorRef[T]
  11. def spawnAnonymous[T](sys: actor.ActorSystem, behavior: Behavior[T], props: Props): ActorRef[T]
  12. def spawnAnonymous[T](sys: actor.ActorSystem, behavior: Behavior[T]): ActorRef[T]
  13. def stop(ctx: ActorContext[_], child: actor.ActorRef): Unit
  14. def stop(ctx: actor.ActorContext, child: ActorRef[_]): Unit
  15. def toTyped[T](ref: actor.ActorRef): ActorRef[T]
  16. def toTyped(sys: actor.ActorSystem): ActorSystem[Void]
  17. def toUntyped(ref: ActorRef[_]): actor.ActorRef
  18. def toUntyped(ctx: ActorContext[_]): actor.ActorContext
  19. def toUntyped(sys: ActorSystem[_]): actor.ActorSystem
  20. def unwatch[U](ctx: ActorContext[_], other: actor.ActorRef): Unit
  21. def unwatch[U](ctx: actor.ActorContext, other: ActorRef[U]): Unit
  22. def watch[U](ctx: ActorContext[_], other: actor.ActorRef): Unit
  23. def watch[U](ctx: actor.ActorContext, other: ActorRef[U]): Unit