Package io.permazen.kv.raft.msg
Interface MessageSwitch
public interface MessageSwitch
Visitor pattern interface for
Message
s.-
Method Summary
Modifier and TypeMethodDescriptionvoid
Handle anAppendRequest
.void
Handle anAppendResponse
.void
Handle aCommitRequest
.void
Handle aCommitResponse
.void
caseGrantVote
(GrantVote msg) Handle anGrantVote
.void
Handle aInstallSnapshot
.void
Handle aPingRequest
.void
Handle aPingResponse
.void
Handle anRequestVote
.
-
Method Details
-
caseAppendRequest
Handle anAppendRequest
.- Parameters:
msg
- message received
-
caseAppendResponse
Handle anAppendResponse
.- Parameters:
msg
- message received
-
caseCommitRequest
Handle aCommitRequest
.- Parameters:
msg
- message received
-
caseCommitResponse
Handle aCommitResponse
.- Parameters:
msg
- message received
-
caseGrantVote
Handle anGrantVote
.- Parameters:
msg
- message received
-
caseInstallSnapshot
Handle aInstallSnapshot
.- Parameters:
msg
- message received
-
casePingRequest
Handle aPingRequest
.- Parameters:
msg
- message received
-
casePingResponse
Handle aPingResponse
.- Parameters:
msg
- message received
-
caseRequestVote
Handle anRequestVote
.- Parameters:
msg
- message received
-