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 Details

    • JoinSeedNodes

      public JoinSeedNodes(scala.collection.immutable.Seq<Address> seedNodes)
    • JoinSeedNodes

      public JoinSeedNodes(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 Details

    • 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 String productPrefix()
      Specified by:
      productPrefix in interface scala.Product
    • productArity

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

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

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

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

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

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

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

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