| Package | Description |
|---|---|
| io.atomix.protocols.raft.protocol |
RaftRequest and RaftResponse
implementations for all client-server communication. |
| Modifier and Type | Method and Description |
|---|---|
AppendRequest.Builder |
AppendRequest.Builder.addEntry(RaftLogEntry entry)
Adds an entry to the request.
|
static AppendRequest.Builder |
AppendRequest.newBuilder()
Returns a new append request builder.
|
AppendRequest.Builder |
AppendRequest.Builder.withCommitIndex(long commitIndex)
Sets the request commit index.
|
AppendRequest.Builder |
AppendRequest.Builder.withEntries(List<RaftLogEntry> entries)
Sets the request entries.
|
AppendRequest.Builder |
AppendRequest.Builder.withEntries(RaftLogEntry... entries)
Sets the request entries.
|
AppendRequest.Builder |
AppendRequest.Builder.withLeader(MemberId leader)
Sets the request leader.
|
AppendRequest.Builder |
AppendRequest.Builder.withPrevLogIndex(long prevLogIndex)
Sets the request last log index.
|
AppendRequest.Builder |
AppendRequest.Builder.withPrevLogTerm(long prevLogTerm)
Sets the request last log term.
|
AppendRequest.Builder |
AppendRequest.Builder.withTerm(long term)
Sets the request term.
|
Copyright © 2013–2017. All rights reserved.