Class PropsAdapter$


  • public class PropsAdapter$
    extends java.lang.Object
    Wrap Behavior in an untyped 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 on an untyped ActorContext, but it's needed when using typed actors with an existing library/tool that provides an API that takes an untyped Props parameter. Cluster Sharding is an example of that.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static PropsAdapter$ MODULE$
      Static reference to the singleton instance of this Scala object.
    • Constructor Summary

      Constructors 
      Constructor Description
      PropsAdapter$()  
    • Field Detail

      • MODULE$

        public static final PropsAdapter$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • PropsAdapter$

        public PropsAdapter$()
    • Method Detail

      • apply

        public <T> Props apply​(scala.Function0<Behavior<T>> behavior,
                               Props deploy)
      • apply$default$2

        public <T> Props apply$default$2()