public static class GMS.DefaultMembershipPolicy extends java.lang.Object implements MembershipChangePolicy
构造器和说明 |
---|
GMS.DefaultMembershipPolicy() |
限定符和类型 | 方法和说明 |
---|---|
java.util.List<Address> |
getNewMembership(java.util.Collection<Address> current_members,
java.util.Collection<Address> joiners,
java.util.Collection<Address> leavers,
java.util.Collection<Address> suspects)
Takes the existing membership list and removes suspected and left members, then adds new
members to the end of the list
|
java.util.List<Address> |
getNewMembership(java.util.Collection<java.util.Collection<Address>> subviews)
Default implementation for a merge.
|
static java.util.List<Address> |
getNewMembershipOld(java.util.Collection<java.util.Collection<Address>> subviews)
Old default implementation for a merge.
|
public java.util.List<Address> getNewMembership(java.util.Collection<Address> current_members, java.util.Collection<Address> joiners, java.util.Collection<Address> leavers, java.util.Collection<Address> suspects)
getNewMembership
在接口中 MembershipChangePolicy
current_members
- The list of current members. Guaranteed to be non-null (but may be empty)joiners
- The joining members. Guaranteed to be non-null (but may be empty)leavers
- Members that are leaving. Guaranteed to be non-null (but may be empty)suspects
- Members which are suspected. Guaranteed to be non-null (but may be empty)public static java.util.List<Address> getNewMembershipOld(java.util.Collection<java.util.Collection<Address>> subviews)
subviews
- A list of membership lists, e.g. [{A,B,C}, {M,N,O,P}, {X,Y,Z}]. This is a merge between
3 subviews. Guaranteed to be non-null (but may be empty)public java.util.List<Address> getNewMembership(java.util.Collection<java.util.Collection<Address>> subviews)
getNewMembership
在接口中 MembershipChangePolicy
subviews
- A list of membership lists, e.g. [{A,B,C}, {M,N,O,P}, {X,Y,Z}]. This is a merge between
3 subviews. Guaranteed to be non-null (but may be empty)