Package | Description |
---|---|
com.hazelcast.cluster.memberselector |
This package contains several
MemberSelector implementations. |
com.hazelcast.core |
Provides core API interfaces/classes.
|
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 |
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
|
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
|
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 Hazelcast, Inc.. All rights reserved.