Class MemberSelectors
java.lang.Object
com.hazelcast.cluster.memberselector.MemberSelectors
A utility class to get
MemberSelector
instances.-
Field Summary
Modifier and TypeFieldDescriptionstatic final MemberSelector
AMemberSelector
instance that selects only data members that own a partitionstatic final MemberSelector
AMemberSelector
instance that selects only lite members that own no partitionstatic final MemberSelector
AMemberSelector
instance that selects only local membersstatic final MemberSelector
AMemberSelector
instance that selects only remote members -
Method Summary
Modifier and TypeMethodDescriptionstatic MemberSelector
and
(MemberSelector... selectors) Selects a member when all of the selectors succeedstatic MemberSelector
or
(MemberSelector... selectors) Selects a member when one of the selectors succeed
-
Field Details
-
LITE_MEMBER_SELECTOR
AMemberSelector
instance that selects only lite members that own no partition -
DATA_MEMBER_SELECTOR
AMemberSelector
instance that selects only data members that own a partition -
LOCAL_MEMBER_SELECTOR
AMemberSelector
instance that selects only local members -
NON_LOCAL_MEMBER_SELECTOR
AMemberSelector
instance that selects only remote members
-
-
Method Details
-
or
Selects a member when one of the selectors succeed- Parameters:
selectors
-MemberSelector
instances to iterate- Returns:
- a
MemberSelector
that selects a member when one of the sub-selectors succeed
-
and
Selects a member when all of the selectors succeed- Parameters:
selectors
-MemberSelector
instances to iterate- Returns:
- a
MemberSelector
that selects a member when all of the sub-selectors succeed
-