public class FollowerInfo extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
| Modifier and Type | Method and Description |
|---|---|
void |
decreaseNextIndex(long newNextIndex) |
Timestamp |
getLastRpcTime() |
long |
getMatchIndex() |
String |
getName() |
long |
getNextIndex() |
RaftPeer |
getPeer() |
void |
increaseNextIndex(long newNextIndex) |
void |
setSnapshotIndex(long newSnapshotIndex) |
String |
toString() |
void |
updateLastRpcResponseTime()
Update lastRpcResponseTime to the current time.
|
void |
updateLastRpcSendTime()
Update lastRpcSendTime to the current time.
|
boolean |
updateMatchIndex(long newMatchIndex) |
void |
updateNextIndex(long newNextIndex) |
void |
updateNextIndexToMax(long newNextIndex) |
public long getMatchIndex()
public boolean updateMatchIndex(long newMatchIndex)
public long getNextIndex()
public void increaseNextIndex(long newNextIndex)
public void decreaseNextIndex(long newNextIndex)
public void updateNextIndex(long newNextIndex)
public void updateNextIndexToMax(long newNextIndex)
public void setSnapshotIndex(long newSnapshotIndex)
public String getName()
public RaftPeer getPeer()
public void updateLastRpcResponseTime()
public void updateLastRpcSendTime()
public Timestamp getLastRpcTime()
Copyright © 2017–2020 The Apache Software Foundation. All rights reserved.