Package akka.actor.typed
Class SpawnProtocol.Spawn<T>
- java.lang.Object
-
- akka.actor.typed.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 givenbehavior
and send back theActorRef
of that child to the givenreplyTo
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 thename
. 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 inInvalidActorNameException
, but it's better to use unique names to begin with.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Behavior<T>
behavior()
boolean
canEqual(java.lang.Object x$1)
<T> SpawnProtocol.Spawn<T>
copy(Behavior<T> behavior, java.lang.String name, Props props, ActorRef<ActorRef<T>> replyTo)
<T> Behavior<T>
copy$default$1()
<T> java.lang.String
copy$default$2()
<T> Props
copy$default$3()
<T> ActorRef<ActorRef<T>>
copy$default$4()
boolean
equals(java.lang.Object x$1)
int
hashCode()
java.lang.String
name()
int
productArity()
java.lang.Object
productElement(int x$1)
java.lang.String
productElementName(int x$1)
scala.collection.Iterator<java.lang.Object>
productIterator()
java.lang.String
productPrefix()
Props
props()
ActorRef<ActorRef<T>>
replyTo()
java.lang.String
toString()
-
-
-
Method Detail
-
name
public java.lang.String name()
-
props
public Props props()
-
copy
public <T> SpawnProtocol.Spawn<T> copy(Behavior<T> behavior, java.lang.String name, Props props, ActorRef<ActorRef<T>> replyTo)
-
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 interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArity
in interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElement
in interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqual
in interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementName
in interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
-
-