Package org.apache.pekko.cluster
Class Member$
java.lang.Object
org.apache.pekko.cluster.Member$
- All Implemented Interfaces:
Serializable
Module with factory and ordering methods for Member instances.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionscala.math.Ordering<Address>Addressordering type class, sorts addresses by host and port.scala.math.Ordering<Member>Sort members by age, i.e.highestPriorityOf(Member m1, Member m2) Picks the Member with the highest "priority" MemberStatus.scala.collection.immutable.Set<Member>none()scala.math.Ordering<Member>ordering()Memberordering type class, sorts members by host and port.
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
Member$
public Member$()
-
-
Method Details
-
none
-
addressOrdering
Addressordering type class, sorts addresses by host and port. -
ordering
Memberordering type class, sorts members by host and port. -
ageOrdering
Sort members by age, i.e. usingMember.isOlderThan(org.apache.pekko.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
IllegalArgumentExceptionif the members belong to different data centers. -
highestPriorityOf
Picks the Member with the highest "priority" MemberStatus. Where highest priority is furthest along the membership state machine
-