public class AppendResponse extends AbstractRaftResponse
| Modifier and Type | Class and Description |
|---|---|
static class |
AppendResponse.Builder
Append response builder.
|
RaftResponse.Status| Constructor and Description |
|---|
AppendResponse(RaftResponse.Status status,
RaftError error,
long term,
boolean succeeded,
long lastLogIndex) |
| Modifier and Type | Method and Description |
|---|---|
static AppendResponse.Builder |
builder()
Returns a new append response builder.
|
boolean |
equals(Object object) |
int |
hashCode() |
long |
lastLogIndex()
Returns the last index of the replica's log.
|
boolean |
succeeded()
Returns a boolean indicating whether the append was successful.
|
long |
term()
Returns the requesting node's current term.
|
String |
toString() |
error, statuspublic AppendResponse(RaftResponse.Status status, RaftError error, long term, boolean succeeded, long lastLogIndex)
public static AppendResponse.Builder builder()
public long term()
public boolean succeeded()
public long lastLogIndex()
public int hashCode()
hashCode in class AbstractRaftResponsepublic boolean equals(Object object)
equals in class AbstractRaftResponsepublic String toString()
toString in class AbstractRaftResponseCopyright © 2013–2018. All rights reserved.