Package akka.cluster

Class Member$

  • All Implemented Interfaces:
    java.io.Serializable

    public class Member$
    extends java.lang.Object
    implements java.io.Serializable
    Module with factory and ordering methods for Member instances.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Member$ MODULE$
      Static reference to the singleton instance of this Scala object.
    • Constructor Summary

      Constructors 
      Constructor Description
      Member$()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      scala.math.Ordering<Address> addressOrdering()
      Address ordering type class, sorts addresses by host and port.
      scala.math.Ordering<Member> ageOrdering()
      Sort members by age, i.e.
      Member highestPriorityOf​(Member m1, Member m2)
      Picks the Member with the highest "priority" MemberStatus.
      scala.collection.immutable.Set<Member> none()  
      scala.math.Ordering<Member> ordering()
      Member ordering type class, sorts members by host and port.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • MODULE$

        public static final Member$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • Member$

        public Member$()
    • Method Detail

      • none

        public scala.collection.immutable.Set<Member> none()
      • addressOrdering

        public scala.math.Ordering<Address> addressOrdering()
        Address ordering type class, sorts addresses by host and port.
      • ordering

        public scala.math.Ordering<Member> ordering()
        Member ordering type class, sorts members by host and port.
      • ageOrdering

        public scala.math.Ordering<Member> ageOrdering()
        Sort members by age, i.e. using Member.isOlderThan(akka.cluster.Member).

        Note that it only makes sense to compare with other members of same data center. To avoid mistakes of comparing members of different data centers it will throw IllegalArgumentException if the members belong to different data centers.

      • highestPriorityOf

        public Member highestPriorityOf​(Member m1,
                                        Member m2)
        Picks the Member with the highest "priority" MemberStatus. Where highest priority is furthest along the membership state machine