use of com.hazelcast.cp.internal.operation.ChangeRaftGroupMembershipOp in project hazelcast by hazelcast.
the class RaftInvocationManager method changeMembership.
<T> InternalCompletableFuture<T> changeMembership(CPGroupId groupId, long membersCommitIndex, RaftEndpoint member, MembershipChangeMode membershipChangeMode) {
InternalCompletableFuture<T> completedFuture = completeExceptionallyIfCPSubsystemNotAvailable();
if (completedFuture != null) {
return completedFuture;
}
Operation operation = new ChangeRaftGroupMembershipOp(groupId, membersCommitIndex, member, membershipChangeMode);
Invocation invocation = new RaftInvocation(operationService.getInvocationContext(), raftInvocationContext, groupId, operation, invocationMaxRetryCount, invocationRetryPauseMillis, operationCallTimeout);
return invocation.invoke();
}
Aggregations