Package org.apache.pekko.cluster.typed
Class JoinSeedNodes
java.lang.Object
org.apache.pekko.cluster.typed.JoinSeedNodes
- All Implemented Interfaces:
Serializable,ClusterCommand,scala.Equals,scala.Product
public final class JoinSeedNodes
extends Object
implements ClusterCommand, scala.Product, Serializable
Scala API: Join the specified seed nodes without defining them in config.
Especially useful from tests when Addresses are unknown before startup time.
An actor system can only join a cluster once. Additional attempts will be ignored. When it has successfully joined it must be restarted to be able to join another cluster or to join the same cluster again.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJoinSeedNodes(List<Address> seedNodes) Java API: Join the specified seed nodes without defining them in config.JoinSeedNodes(scala.collection.immutable.Seq<Address> seedNodes) -
Method Summary
Modifier and TypeMethodDescriptionstatic JoinSeedNodesbooleanscala.collection.immutable.Seq<Address>booleaninthashCode()intproductElement(int x$1) productElementName(int x$1) scala.collection.Iterator<Object>scala.collection.immutable.Seq<Address>toString()static scala.Option<scala.collection.immutable.Seq<Address>>unapply(JoinSeedNodes x$0) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.Product
productElementNames
-
Constructor Details
-
JoinSeedNodes
-
JoinSeedNodes
Java API: Join the specified seed nodes without defining them in config. Especially useful from tests when Addresses are unknown before startup time.An actor system can only join a cluster once. Additional attempts will be ignored. When it has successfully joined it must be restarted to be able to join another cluster or to join the same cluster again.
Creates a defensive copy of the list to ensure immutability.
-
-
Method Details
-
apply
-
unapply
-
seedNodes
-
copy
-
copy$default$1
-
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
-