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. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def actorOf(ctx: ActorContext[_], props: actor.Props, name: String): actor.ActorRef
  5. def actorOf(ctx: ActorContext[_], props: actor.Props): actor.ActorRef
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  16. def props[T](behavior: Creator[Behavior[T]]): actor.Props

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

    Wrap akka.actor.typed.Behavior 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.

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

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

    Wrap akka.actor.typed.Behavior 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.

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

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

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

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

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

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

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

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

  26. def stop(ctx: ActorContext[_], child: actor.ActorRef): Unit
  27. def stop(ctx: actor.ActorContext, child: ActorRef[_]): Unit
  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. def toClassic(scheduler: Scheduler): actor.Scheduler
  30. def toClassic(ref: ActorRef[_]): actor.ActorRef
  31. def toClassic(ctx: ActorContext[_]): actor.ActorContext
  32. def toClassic(sys: ActorSystem[_]): actor.ActorSystem
  33. def toString(): String
    Definition Classes
    AnyRef → Any
  34. def toTyped[T](scheduler: actor.Scheduler): Scheduler
  35. def toTyped[T](ref: actor.ActorRef): ActorRef[T]
  36. def toTyped(sys: actor.ActorSystem): ActorSystem[Void]
  37. def unwatch[U](ctx: ActorContext[_], other: actor.ActorRef): Unit
  38. def unwatch[U](ctx: actor.ActorContext, other: ActorRef[U]): Unit
  39. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  40. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  41. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  42. def watch[U](ctx: ActorContext[_], other: actor.ActorRef): Unit
  43. def watch[U](ctx: actor.ActorContext, other: ActorRef[U]): Unit

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped