Class SpawnProtocol.Spawn<T>

  • All Implemented Interfaces:
    SpawnProtocol.Command, java.io.Serializable, scala.Equals, scala.Product
    Enclosing class:
    SpawnProtocol

    public static final class SpawnProtocol.Spawn<T>
    extends java.lang.Object
    implements SpawnProtocol.Command, scala.Product, java.io.Serializable
    Spawn a child actor with the given behavior and send back the ActorRef of that child to the given replyTo destination.

    If name is an empty string an anonymous actor (with automatically generated name) will be created.

    If the name is already taken of an existing actor a unique name will be used by appending a suffix to the the name. The exact format or value of the suffix is an implementation detail that is undefined. This means that reusing the same name for several actors will not result in InvalidActorNameException, but it's better to use unique names to begin with.

    See Also:
    Serialized Form
    • Method Detail

      • name

        public java.lang.String name()
      • props

        public Props props()
      • copy$default$1

        public <T> Behavior<T> copy$default$1()
      • copy$default$2

        public <T> java.lang.String copy$default$2()
      • copy$default$3

        public <T> Props copy$default$3()
      • productPrefix

        public java.lang.String productPrefix()
        Specified by:
        productPrefix in interface scala.Product
      • productArity

        public int productArity()
        Specified by:
        productArity in interface scala.Product
      • productElement

        public java.lang.Object productElement​(int x$1)
        Specified by:
        productElement in interface scala.Product
      • productIterator

        public scala.collection.Iterator<java.lang.Object> productIterator()
        Specified by:
        productIterator in interface scala.Product
      • canEqual

        public boolean canEqual​(java.lang.Object x$1)
        Specified by:
        canEqual in interface scala.Equals
      • productElementName

        public java.lang.String productElementName​(int x$1)
        Specified by:
        productElementName in interface scala.Product
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object x$1)
        Specified by:
        equals in interface scala.Equals
        Overrides:
        equals in class java.lang.Object