public class ReplicateTask extends Object implements Runnable
RaftNode.replicate(Object)
or by MembershipChangeTask
for membership changes.
If this node is not the leader, future is immediately notified with
NotLeaderException
.
If replication of the operation is not allowed at the moment
(see RaftNodeImpl.canReplicateNewEntry(Object)
), the future is
immediately notified with CannotReplicateException
.
Constructor and Description |
---|
ReplicateTask(RaftNodeImpl raftNode,
Object operation,
SimpleCompletableFuture resultFuture) |
public ReplicateTask(RaftNodeImpl raftNode, Object operation, SimpleCompletableFuture resultFuture)
Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.