use of com.hazelcast.cluster.memberselector.MemberSelectors.DATA_MEMBER_SELECTOR in project hazelcast by hazelcast.
the class PartitionStateManager method createMemberGroups.
private Collection<MemberGroup> createMemberGroups(final Set<Member> excludedMembers) {
MemberSelector exclude = member -> !excludedMembers.contains(member);
final MemberSelector selector = MemberSelectors.and(DATA_MEMBER_SELECTOR, exclude);
final Collection<Member> members = node.getClusterService().getMembers(selector);
return memberGroupFactory.createMemberGroups(members);
}
Aggregations