Class PropsAdapter
- java.lang.Object
-
- akka.actor.typed.scaladsl.adapter.PropsAdapter
-
public class PropsAdapter extends java.lang.Object
WrapBehavior
in a classicProps
, i.e. when spawning a typed child actor from a classic parent actor. This is normally not needed because you can use the extension methodsspawn
andspawnAnonymous
on a classicActorContext
, but it's needed when using typed actors with an existing library/tool that provides an API that takes a classicProps
parameter. Cluster Sharding is an example of that.
-
-
Constructor Summary
Constructors Constructor Description PropsAdapter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Props
apply(scala.Function0<Behavior<T>> behavior, Props deploy)
static <T> Props
apply$default$2()
-