Package akka.cluster
Class Member$
- java.lang.Object
-
- akka.cluster.Member$
-
- All Implemented Interfaces:
java.io.Serializable
,scala.Serializable
public class Member$ extends java.lang.Object implements scala.Serializable
INTERNAL API Create a new member with status Joining.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Member$()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated 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
apply(UniqueAddress uniqueAddress, scala.collection.immutable.Set<java.lang.String> roles)
INTERNAL API Create a new member with status Joining.Member
highestPriorityOf(Member m1, Member m2)
Picks the Member with the highest "priority" MemberStatus.scala.math.Ordering<Member>
leaderStatusOrdering()
INTERNAL API Orders the members by their address except that members with status Joining, Exiting and Down are ordered last (in that order).scala.collection.immutable.Set<Member>
none()
scala.math.Ordering<Member>
ordering()
Member
ordering type class, sorts members by host and port.scala.collection.immutable.Set<Member>
pickHighestPriority(scala.collection.immutable.Set<Member> a, scala.collection.immutable.Set<Member> b)
Deprecated.Was accidentally made a public API, internal.scala.collection.immutable.Set<Member>
pickHighestPriority(scala.collection.immutable.Set<Member> a, scala.collection.immutable.Set<Member> b, scala.collection.immutable.Map<UniqueAddress,java.lang.Object> tombstones)
INTERNAL API.Member
removed(UniqueAddress node)
INTERNAL API
-
-
-
Field Detail
-
MODULE$
public static final Member$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
none
public scala.collection.immutable.Set<Member> none()
-
apply
public Member apply(UniqueAddress uniqueAddress, scala.collection.immutable.Set<java.lang.String> roles)
INTERNAL API Create a new member with status Joining.- Parameters:
uniqueAddress
- (undocumented)roles
- (undocumented)- Returns:
- (undocumented)
-
removed
public Member removed(UniqueAddress node)
INTERNAL API- Parameters:
node
- (undocumented)- Returns:
- (undocumented)
-
addressOrdering
public scala.math.Ordering<Address> addressOrdering()
Address
ordering type class, sorts addresses by host and port.- Returns:
- (undocumented)
-
leaderStatusOrdering
public scala.math.Ordering<Member> leaderStatusOrdering()
INTERNAL API Orders the members by their address except that members with status Joining, Exiting and Down are ordered last (in that order).- Returns:
- (undocumented)
-
ordering
public scala.math.Ordering<Member> ordering()
Member
ordering type class, sorts members by host and port.- Returns:
- (undocumented)
-
ageOrdering
public scala.math.Ordering<Member> ageOrdering()
Sort members by age, i.e. usingMember.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.- Returns:
- (undocumented)
-
pickHighestPriority
public scala.collection.immutable.Set<Member> pickHighestPriority(scala.collection.immutable.Set<Member> a, scala.collection.immutable.Set<Member> b)
Deprecated.Was accidentally made a public API, internal. Since 2.5.4.
-
pickHighestPriority
public scala.collection.immutable.Set<Member> pickHighestPriority(scala.collection.immutable.Set<Member> a, scala.collection.immutable.Set<Member> b, scala.collection.immutable.Map<UniqueAddress,java.lang.Object> tombstones)
INTERNAL API.- Parameters:
a
- (undocumented)b
- (undocumented)tombstones
- (undocumented)- Returns:
- (undocumented)
-
-