## Uses of Interface
com.hazelcast.core.MemberSelector

- Packages that use MemberSelector
  Package | Description
  --- | ---
  com.hazelcast.client.proxy | This package contains client side proxy implementations of the different Hazelcast data structures and operation types
  com.hazelcast.client.spi | Contains classes/interfaces related to the Hazelcast client Service Provider Interface.
  com.hazelcast.cluster.memberselector | This package contains several `MemberSelector` implementations.
  com.hazelcast.core | Provides core API interfaces/classes.

- - ### Uses of MemberSelector in com.hazelcast.client.proxy

    Methods in com.hazelcast.client.proxy with parameters of type MemberSelector
    Modifier and Type | Method and Description
    --- | ---
    `void` | ClientExecutorServiceProxy.`execute(Runnable command, MemberSelector memberSelector)`
    `void` | ClientExecutorServiceProxy.`executeOnMembers(Runnable command, MemberSelector memberSelector)`
    `<T> Future<T>` | ClientExecutorServiceProxy.`submit(Callable<T> task, MemberSelector memberSelector)`
    `<T> void` | ClientExecutorServiceProxy.`submit(Callable<T> task, MemberSelector memberSelector, ExecutionCallback<T> callback)`
    `void` | ClientExecutorServiceProxy.`submit(Runnable task, MemberSelector memberSelector, ExecutionCallback callback)`
    `<T> Map<Member,Future<T>>` | ClientExecutorServiceProxy.`submitToMembers(Callable<T> task, MemberSelector memberSelector)`
    `<T> void` | ClientExecutorServiceProxy.`submitToMembers(Callable<T> task, MemberSelector memberSelector, MultiExecutionCallback callback)`
    `void` | ClientExecutorServiceProxy.`submitToMembers(Runnable task, MemberSelector memberSelector, MultiExecutionCallback callback)`

  - ### Uses of MemberSelector in com.hazelcast.client.spi

    Methods in com.hazelcast.client.spi with parameters of type MemberSelector
    Modifier and Type | Method and Description
    --- | ---
    `Collection<Member>` | ClientClusterService.`getMembers(MemberSelector selector)` Returns a collection of the members that satisfy the given `MemberSelector`.
    `int` | ClientClusterService.`getSize(MemberSelector selector)` Gets the number of members that satisfy the given `MemberSelector` instance.

  - ### Uses of MemberSelector in com.hazelcast.cluster.memberselector

    Fields in com.hazelcast.cluster.memberselector declared as MemberSelector
    Modifier and Type | Field and Description
    --- | ---
    `static MemberSelector` | MemberSelectors.`DATA_MEMBER_SELECTOR` A `MemberSelector` instance that selects only data members that own a partition
    `static MemberSelector` | MemberSelectors.`LITE_MEMBER_SELECTOR` A `MemberSelector` instance that selects only lite members that own no partition
    `static MemberSelector` | MemberSelectors.`LOCAL_MEMBER_SELECTOR` A `MemberSelector` instance that selects only local members
    `static MemberSelector` | MemberSelectors.`NON_LOCAL_MEMBER_SELECTOR` A `MemberSelector` instance that selects only remote members

    Methods in com.hazelcast.cluster.memberselector that return MemberSelector
    Modifier and Type | Method and Description
    --- | ---
    `static MemberSelector` | MemberSelectors.`and(MemberSelector... selectors)` Selects a member when all of the selectors succeed
    `static MemberSelector` | MemberSelectors.`or(MemberSelector... selectors)` Selects a member when one of the selectors succeed

    Methods in com.hazelcast.cluster.memberselector with parameters of type MemberSelector
    Modifier and Type | Method and Description
    --- | ---
    `static MemberSelector` | MemberSelectors.`and(MemberSelector... selectors)` Selects a member when all of the selectors succeed
    `static MemberSelector` | MemberSelectors.`or(MemberSelector... selectors)` Selects a member when one of the selectors succeed

  - ### Uses of MemberSelector in com.hazelcast.core

    Methods in com.hazelcast.core with parameters of type MemberSelector
    Modifier and Type | Method and Description
    --- | ---
    `void` | IExecutorService.`execute(Runnable command, MemberSelector memberSelector)` Executes a task on a randomly selected member.
    `void` | IExecutorService.`executeOnMembers(Runnable command, MemberSelector memberSelector)` Executes a task on each of the selected members.
    `<T> Future<T>` | IExecutorService.`submit(Callable<T> task, MemberSelector memberSelector)` Submits a task to a randomly selected member and returns a Future representing that task.
    `<T> void` | IExecutorService.`submit(Callable<T> task, MemberSelector memberSelector, ExecutionCallback<T> callback)` Submits task to a randomly selected member.
    `<T> void` | IExecutorService.`submit(Runnable task, MemberSelector memberSelector, ExecutionCallback<T> callback)` Submits a task to randomly selected members.
    `<T> Map<Member,Future<T>>` | IExecutorService.`submitToMembers(Callable<T> task, MemberSelector memberSelector)` Submits a task to selected members and returns a map of Member-Future pairs representing pending completion of the task on each member.
    `<T> void` | IExecutorService.`submitToMembers(Callable<T> task, MemberSelector memberSelector, MultiExecutionCallback callback)` Submits task to the selected members.
    `void` | IExecutorService.`submitToMembers(Runnable task, MemberSelector memberSelector, MultiExecutionCallback callback)` Submits task to the selected members.

Copyright © 2020. All rights reserved.