object Adapter

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

These methods make it possible to create a child actor from classic parent actor, and the opposite classic child from typed parent. watch is also supported in both directions.

There are also converters (toTyped, toClassic) between classic akka.actor.ActorRef and akka.actor.typed.ActorRef, and between classic akka.actor.ActorSystem and 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. Protected

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: [Behavior[T]]): actor.Props

    Wrap in a classic akka.actor.Props, i.e.

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

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

    Wrap in a classic akka.actor.Props, i.e.

    Wrap in a classic akka.actor.Props, i.e. when spawning a typed child actor from a classic parent actor. This is normally not needed because you can use the extension methods spawn and spawnAnonymous with a classic ActorContext, but it's needed when using typed actors with an existing library/tool that provides an API that takes a classic 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]

    Spawn the given behavior as a child of the user actor in a classic ActorContext.

    Spawn the given behavior as a child of the user actor in a classic ActorContext. Actor default supervision strategy is to stop. Can be overridden with Behaviors.supervise.

  6. def spawn[T](ctx: actor.ActorContext, behavior: Behavior[T], name: String): ActorRef[T]

    Spawn the given behavior as a child of the user actor in a classic ActorContext.

    Spawn the given behavior as a child of the user actor in a classic ActorContext. Actor default supervision strategy is to stop. Can be overridden with Behaviors.supervise.

  7. def spawn[T](sys: actor.ActorSystem, behavior: Behavior[T], name: String, props: Props): ActorRef[T]

    Spawn the given behavior as a child of the user actor in a classic ActorSystem.

    Spawn the given behavior as a child of the user actor in a classic ActorSystem. Actor default supervision strategy is to stop. Can be overridden with Behaviors.supervise.

  8. def spawn[T](sys: actor.ActorSystem, behavior: Behavior[T], name: String): ActorRef[T]

    Spawn the given behavior as a child of the user actor in a classic ActorSystem.

    Spawn the given behavior as a child of the user actor in a classic ActorSystem. Actor default supervision strategy is to stop. Can be overridden with Behaviors.supervise.

  9. def spawnAnonymous[T](ctx: actor.ActorContext, behavior: Behavior[T], props: Props): ActorRef[T]

    Spawn the given behavior as a child of the user actor in a classic ActorContext.

    Spawn the given behavior as a child of the user actor in a classic ActorContext. Actor default supervision strategy is to stop. Can be overridden with Behaviors.supervise.

  10. def spawnAnonymous[T](ctx: actor.ActorContext, behavior: Behavior[T]): ActorRef[T]

    Spawn the given behavior as a child of the user actor in a classic ActorContext.

    Spawn the given behavior as a child of the user actor in a classic ActorContext. Actor default supervision strategy is to stop. Can be overridden with Behaviors.supervise.

  11. def spawnAnonymous[T](sys: actor.ActorSystem, behavior: Behavior[T], props: Props): ActorRef[T]

    Spawn the given behavior as a child of the user actor in a classic ActorSystem.

    Spawn the given behavior as a child of the user actor in a classic ActorSystem. Actor default supervision strategy is to stop. Can be overridden with Behaviors.supervise.

  12. def spawnAnonymous[T](sys: actor.ActorSystem, behavior: Behavior[T]): ActorRef[T]

    Spawn the given behavior as a child of the user actor in a classic ActorSystem.

    Spawn the given behavior as a child of the user actor in a classic ActorSystem. Actor default supervision strategy is to stop. Can be overridden with Behaviors.supervise.

  13. def stop(ctx: ActorContext[_], child: actor.ActorRef): Unit
  14. def stop(ctx: actor.ActorContext, child: ActorRef[_]): Unit
  15. def toClassic(scheduler: Scheduler): actor.Scheduler
  16. def toClassic(ref: ActorRef[_]): actor.ActorRef
  17. def toClassic(ctx: ActorContext[_]): actor.ActorContext
  18. def toClassic(sys: ActorSystem[_]): actor.ActorSystem
  19. def toTyped[T](scheduler: actor.Scheduler): Scheduler
  20. def toTyped[T](ref: actor.ActorRef): ActorRef[T]
  21. def toTyped(sys: actor.ActorSystem): [Void]
  22. def unwatch[U](ctx: ActorContext[_], other: actor.ActorRef): Unit
  23. def unwatch[U](ctx: actor.ActorContext, other: ActorRef[U]): Unit
  24. def watch[U](ctx: ActorContext[_], other: actor.ActorRef): Unit
  25. def watch[U](ctx: actor.ActorContext, other: ActorRef[U]): Unit