Package org.apache.pekko.actor.typed
Class SpawnProtocol.Spawn<T>
java.lang.Object
org.apache.pekko.actor.typed.SpawnProtocol.Spawn<T>
- All Implemented Interfaces:
Serializable,SpawnProtocol.Command,scala.Equals,scala.Product
- Enclosing class:
- SpawnProtocol
public static final class SpawnProtocol.Spawn<T>
extends Object
implements SpawnProtocol.Command, scala.Product, 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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbehavior()boolean<T> SpawnProtocol.Spawn<T><T> Behavior<T><T> String<T> PropsbooleaninthashCode()name()intproductElement(int x$1) productElementName(int x$1) scala.collection.Iterator<Object>props()replyTo()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.Product
productElementNames
-
Constructor Details
-
Spawn
-
-
Method Details
-
behavior
-
name
-
props
-
replyTo
-
copy
-
copy$default$1
-
copy$default$2
-
copy$default$3
-
copy$default$4
-
productPrefix
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArityin interfacescala.Product
-
productElement
- Specified by:
productElementin interfacescala.Product
-
productIterator
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode() -
toString
-
equals
-