public class AppendSuccessResponseHandlerTask extends AbstractResponseHandlerTask
AppendSuccessResponse
sent by
AppendRequestHandlerTask
after an append-entries request or
InstallSnapshotHandlerTask
after an install snapshot request.
Advances RaftState.commitIndex()
according to matchIndex
es
of followers.
See 5.3 Log replication section of In Search of an Understandable Consensus Algorithm paper by Diego Ongaro and John Ousterhout.
AppendRequest
,
AppendSuccessResponse
,
AppendFailureResponse
logger, raftNode
Constructor and Description |
---|
AppendSuccessResponseHandlerTask(RaftNodeImpl raftNode,
AppendSuccessResponse response) |
Modifier and Type | Method and Description |
---|---|
protected void |
handleResponse() |
protected Endpoint |
sender() |
innerRun
run
public AppendSuccessResponseHandlerTask(RaftNodeImpl raftNode, AppendSuccessResponse response)
protected void handleResponse()
handleResponse
in class AbstractResponseHandlerTask
protected Endpoint sender()
sender
in class AbstractResponseHandlerTask
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.