object Adapter
- Alphabetic
- By Inheritance
- Adapter
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- def actorOf(ctx: ActorContext[_], props: actor.Props, name: String): actor.ActorRef
- def actorOf(ctx: ActorContext[_], props: actor.Props): actor.ActorRef
- 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
andspawnAnonymous
with a classicActorContext
, 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. - 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
andspawnAnonymous
with a classicActorContext
, 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. - 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
. - 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
. - 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
. - 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
. - 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
. - 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
. - 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
. - 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
. - def stop(ctx: ActorContext[_], child: actor.ActorRef): Unit
- def stop(ctx: actor.ActorContext, child: ActorRef[_]): Unit
- def toClassic(scheduler: Scheduler): actor.Scheduler
- def toClassic(ref: ActorRef[_]): actor.ActorRef
- def toClassic(ctx: ActorContext[_]): actor.ActorContext
- def toClassic(sys: ActorSystem[_]): actor.ActorSystem
- def toTyped[T](scheduler: actor.Scheduler): Scheduler
- def toTyped[T](ref: actor.ActorRef): ActorRef[T]
- def toTyped(sys: actor.ActorSystem): [Void]
- def unwatch[U](ctx: ActorContext[_], other: actor.ActorRef): Unit
- def unwatch[U](ctx: actor.ActorContext, other: ActorRef[U]): Unit
- def watch[U](ctx: ActorContext[_], other: actor.ActorRef): Unit
- def watch[U](ctx: actor.ActorContext, other: ActorRef[U]): Unit
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.