Package akka.cluster.typed
Class JoinSeedNodes
- java.lang.Object
-
- akka.cluster.typed.JoinSeedNodes
-
- All Implemented Interfaces:
ClusterCommand,java.io.Serializable,scala.Equals,scala.Product
public final class JoinSeedNodes extends java.lang.Object implements ClusterCommand, scala.Product, java.io.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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JoinSeedNodes(java.util.List<Address> seedNodes)Java API: Join the specified seed nodes without defining them in config.JoinSeedNodes(scala.collection.immutable.Seq<Address> seedNodes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JoinSeedNodesapply(scala.collection.immutable.Seq<Address> seedNodes)booleancanEqual(java.lang.Object x$1)JoinSeedNodescopy(scala.collection.immutable.Seq<Address> seedNodes)scala.collection.immutable.Seq<Address>copy$default$1()booleanequals(java.lang.Object x$1)inthashCode()intproductArity()java.lang.ObjectproductElement(int x$1)java.lang.StringproductElementName(int x$1)scala.collection.Iterator<java.lang.Object>productIterator()java.lang.StringproductPrefix()scala.collection.immutable.Seq<Address>seedNodes()java.lang.StringtoString()static scala.Option<scala.collection.immutable.Seq<Address>>unapply(JoinSeedNodes x$0)
-
-
-
Constructor Detail
-
JoinSeedNodes
public JoinSeedNodes(scala.collection.immutable.Seq<Address> seedNodes)
-
JoinSeedNodes
public JoinSeedNodes(java.util.List<Address> seedNodes)
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 Detail
-
apply
public static JoinSeedNodes apply(scala.collection.immutable.Seq<Address> seedNodes)
-
unapply
public static scala.Option<scala.collection.immutable.Seq<Address>> unapply(JoinSeedNodes x$0)
-
seedNodes
public scala.collection.immutable.Seq<Address> seedNodes()
-
copy
public JoinSeedNodes copy(scala.collection.immutable.Seq<Address> seedNodes)
-
copy$default$1
public scala.collection.immutable.Seq<Address> copy$default$1()
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArityin interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElementin interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equalsin interfacescala.Equals- Overrides:
equalsin classjava.lang.Object
-
-